camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaus777 <>
Subject Camel + RESTLET in Tomcat/Jetty
Date Wed, 02 Oct 2013 17:46:20 GMT
As far as I understand, Camel by default uses the default RESTLET engine. How
can I tell Camel to use Jetty for RESTLEY instead?

I know there are ways to bundle an application and deploy it in Tomcat or
Jetty. If I do that, however, the biggest question becomes how to integrate

I did some digging. I took one of the tomcat examples that come with camel.
Then I tried to make deploy the RESTLET servlet. It almost works. 
My Spring Camel configuration is given below as well as my web.xml. The
problem now is that the parameters are not being passed to the route. I
would expect that when calling this server:
http://localhost:8080/rs/user/?name=Paul, I would get: Hello Paul how are

Instead, I simply get: Hello how are you?
PS: The container is Tomcat.

Camel Spring config:
 <camelContext xmlns="">

   	<from uri="restlet:/user/?restletMethods=GET,POST"/>
            <simple>Hello ${} how are you?</simple>
<bean id="RestletComponent" class="org.restlet.Component"/>
<bean id="RestletComponentService"
   <constructor-arg index="0">
     <ref bean="RestletComponent"/>



View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message