hello,

i try to expose 2 or more resources using the cxfrs component (camel 2.10.1).
One is working fine, but i don't find a proper solution to expose more then one.

i tried several approaches but none of them worked as expected (at
least what i expect ;-)):

1) one rsServer with many serviceBeans
in the route i use something like
"cxfrs:bean:rsServer?resourceClass=net.code-poets.camel.endpoint.v01.ResourceEndpoint1";
-> all requests are routed to just one endpoint

2) many rsServer instances with one serviceClass each
- using the same address "/" attribute for all rsServer instances does
not work (the exposed resources have their own root @Path defined,
(e.g. Path("/resource1"))
- using the "/resource1" as address string in the rsServer and
removing it from the Resource definition does not work
+ using the "/resource1" as address string and leaving it in the
@Path("/resource1") public interface Resource1...
does work, but leads to an URL like .../resource1/resource1...

i'd like to know if i have a conceptional problem?
can someone pls provide me with a fragment how it should look like to
use many resources, where each of the resource have their own route
definition.

thx in advance,
tim

Reply via email to