Hi
On 10/05/12 07:47, anand_tech wrote:
i am making restful webservices using apache cxf and camel. my configuration
is something like this :
<camelcxf:rsServer id="applicationserver" address="/"
staticSubresourceResolution="true">
<camelcxf:serviceBeans>
<ref bean="Demo" />
<ref bean="Foo" />
<ref bean="Bar" />
</camelcxf:serviceBeans>
</camelcxf:rsServer>
I have three service beans exposed as services and are mapped to different
urls and the route is something like this :
<camel:route id="ServerRoute">
<camel:from uri="cxfrs://bean://applicationserver" />
<camel:process ref="camelCxfInProcessor" />
<camel:to uri="http://google" />
<camel:to uri="bean:googlereqreshandler" />
Now for each service bean i want to have different route as all three have
different functionality, but i am unable to determine what should i write in
my
<from: uri="cxfrs://bean://aplicationserver..."/>
tag to distinguish routes according to service beans. Or is there any other
way of doing this? please suggest something.
Perhaps it would be simpler to create 3 cxfrs endpoints with unique ids,
one linking to Demo, etc ? Example,
<camelcxf:rsServer id="demoServer" address="/demo"
staticSubresourceResolution="true">
<camelcxf:serviceBeans>
<ref bean="Demo" />
</camelcxf:serviceBeans>
</camelcxf:rsServer>
with the @Path annotation on the Demo root resource now containing "/"
and rsServer/@address assuming the "/demo" value, etc ?
Sergey
--
View this message in context:
http://camel.465427.n5.nabble.com/Apache-Camel-CXFRS-Server-Need-advice-for-Routing-tp5699287.html
Sent from the Camel - Users mailing list archive at Nabble.com.