I am using Camel-CXF to publish a web service from a bundle. I use blueprint for configuration. My understanding is that this CXF configuration will dynamically create a Jetty connector on the specified port and publishes the CXF servlet at the specified path:
<cxf:cxfEndpoint id="myEndpoint" address="http://0.0.0.0:${endpoint.port}/${context}" serviceClass="...">
<cxf:properties>
<!-- ... -->
</cxf:properties>
</cxf:cxfEndpoint>
This works nicely. The service endpoint is available at the specified port and path.
Now I would like to make the original WSDL available, transformed by Tomi Vanek's wsdl-viewer style sheet. I figured out how to make static resources available using Pax Web's DefaultResourceMapping:
<bean id="resourceMapping" class="org.ops4j.pax.web.extender.whiteboard.runtime.DefaultResourceMapping">
<property name="alias" value="/wsdl" />
<property name="path" value="/wsdl/v4_0" />
</bean>
However, this makes the WSDL accessible on the default Jetty connector in port 8181. What I cannot figure out is how to bind the resource mapper to any other connector other than the default one. More specifically, to the connector created dynamically for the CXF endpoint.