Hi
On 11/01/13 12:53, Raul Kripalani wrote:
Hi all,

Quick question.

Has anyone tried to run several CXFRS consumers on different bundles
binding to the same port (e.g. 9007), where each consumer has a different
root resource stemming from a different path?

*Bundle A:*

<cxf:rsServer id="rsServer"
                   address="http://0.0.0.0:9007";
                   serviceClass="com.mycompany.ResourceA" />

*Bundle B:*

<cxf:rsServer id="rsServer"
                   address="http://0.0.0.0:9007";
                   serviceClass="com.mycompany.ResourceB" />

*ResourceA* annotated with @Path("/resourceA")
*ResourceB* annotated with @Path("/resourceB")

It looks like the latest bundle to initialise gets ownership of the port,
i.e. they become mutually exclusive.


will cxf:rsServer work with relative addresses, example, the first one with "/resourceA", second - with "/resourceB", and both ResourceA & ResourceB root resources having @Path("/") ?

May be another option is to have a single cxf:rsServer listening on "http://0.0.0.0:9007";, with it root resource listening on "/" and dynamically managing subresources which in turn can handle "/resourceA", "/resourceB", etc, where every subresource is provided or removed externally via different bundles ?

Cheers, Sergey

Any ideas on how to make this work? Do you think this question is more on
the Camel or CXF side of the fence?

Thanks!

*Raúl Kripalani*
Apache Camel Committer
Enterprise Architect, Program Manager, Open Source Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk<http://twitter.com/raulvk>


Reply via email to