Hi,

I want to expose REST services on top of camel:jetty server. I'm planning to
use restlet or cxfrs component for realizing the REST services. By default
both the components deploy the services on top of internal jetty server if
no external containers are used.

But I want to use camel:jetty component to host the server, say on port
8081. Then want to deploy the rest services on t op of the running instance
of the jetty server on port 8081 through a separate route. The idea is to
deploy/remove the services of the existing running server on need basis.
When I try to do so I'm getting BindExceptions using both restlet and jetty
component. Following are the configurations...

<bean id="processHttpRequest" class="processors.WebServiceProcessor"/>
 <camel:route id="startJetty" handleFault="true">
           <camel:from uri="jetty:http://localhost:8081/rest"/>                 
 
           <camel:stop/>
  </camel:route>

<camel:route id="startCxf" handleFault="true">
           <camel:from
uri="cxfrs://http://localhost:8081/rest?resourceClasses=webservice.DummyServices"/>
           <camel:process ref="processHttpRequest"/>          
           <camel:stop/>
</camel:route>

<camel:route id="startRestlet" handleFault="true">
           <camel:from
uri="restlet://http://localhost:8081/rest/{id}?restletMethods=post,get,put"/>
           <camel:process ref="processHttpRequest"/>          
           <camel:stop/>
</camel:route>

Any idea who to do this?

Regards,
Bijoy



--
View this message in context: 
http://camel.465427.n5.nabble.com/Deploying-REST-service-on-running-camel-jetty-instance-tp5746625.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to