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.

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