CXFRS rest service on same port as CXF SOAP Services
Issue
We have SOAP-services via cxf available on Fuse/Fabric and configured on Pax Web port 8282.
We also have a CXFRS Restful service configured as:
<cxf:rsServer id="rsServer"
address="http://0.0.0.0:8484/customerservice"
serviceClass="org.apache.camel.component.cxf.jaxrs.testbean.CustomerService"
loggingFeatureEnabled="true">
<cxf:providers>
<ref component-id="jsonProvider" />
</cxf:providers>
</cxf:rsServer>
But we would like to see the CXFRS Restful services available on the same port to minimize the number of virtual IPs to create, remember, and maintain.
If I configure the CXFRS service to use the same port as the CXF Soap services, there are no errors reported when the bundle(s) are installed and the camel context(s)/routes started. However, at run time, trying to access the Restful services gives an HTTP 404 - Page Not Found. The Soap services are unaffected.
Environment
- JBoss Fuse
- 6.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.