camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Emrich <>
Subject cxfrs: multiple resource howto?
Date Tue, 11 Sep 2012 10:52:42 GMT

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
-> 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

thx in advance,

View raw message