camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: camel/restlet 1 endpoint for any path without list uris
Date Tue, 30 Mar 2010 00:34:25 GMT
No, you don't need that, as camel-jetty will setup itself with the URI 
of the camel-jetty endpoint.

Willem

Tapdur wrote:
> Hi willem
> Thx for your answer, howerver, i launch my cammel route in a web-app /
> spring server, is there a web.xml configuration for camel-jetty ?
> 
> i have error 404 with no camel trace.
> 
> Regards
> Bruno
> 
> 
> 
> willem.jiang wrote:
>> Hi,
>>
>> I don't think the camel-restlet can meet your requirement.
>> But with the help of camel-jetty component, you can implement it easily.
>>
>> from("jetty:http://"+IgcProperties.get("igc.greeting.host")+":"+IgcProperties.get("igc.greeting.port"))
>> .choice()
>>   .when(header("HTTP_PATH").isEqualTo("/greeting")).to("greetingService")
>>   .otherwise().throwException(new Exception());
>>
>> Willem
>>
>> Tapdur wrote:
>>> Hi,
>>>
>>> Is there a trick to specify one camel/restlet entrypoint for any http
>>> path
>>> and use a eip to fork on specific path like this , without any list uri ? 
>>>
>>>   		
>>> from("restlet:http://"+IgcProperties.get("igc.greeting.host")+":"+IgcProperties.get("igc.greeting.port")+"?restletMethods=post,get")
>>> 	   			.choice()
>>>    				
>>> .when(header("HTTP_PATH").isEqualTo("/greeting")).to("greetingService")
>>>   				.otherwise().throwException(new Exception()); 	
>>>
>>>
>>> this code generate http error 404
>>>
>>> Thx
>>> Bruno
>>>
>>>
>>
>>
> 


Mime
View raw message