Hi Christian,
Can you provide an example of how to set this up?  The situation I have is
this, which I think is the exact same as you describe.

I have a central broker server on it with many different bundles:

bundle A
bundle B
bundle C

Each bundle hosts a web service with a distinct WSDL and schema.  Rather
than host each bundle on a different port which creates a firewall
nightmare, we want to set up a single port and host all service on it.

I updated my pax config file like this:

org.osgi.service.http.secure.enabled=true
org.ops4j.pax.web.ssl.keystore=etc/my-keystore.jks
org.ops4j.pax.web.ssl.password=my-keystore
org.ops4j.pax.web.ssl.keypassword=my-key
org.osgi.service.http.port.secure=8443
org.ops4j.pax.web.config.file=etc/jetty.xml
org.osgi.service.http.port=8181
javax.servlet.context.tempdir=data/pax-web-jsp

I installed the 'http' feature in ServiceMix and can see this page in a
browser served up by Jetty:

https://localhost:8443/

In my camel bundle, I set up a CXF endpoint with a URL like this:

https://localhost:8443/MyService

However, I can not start up my service in a simple Camel Context in a unit
test and I get an error like this:

java.lang.IllegalStateException: Port 8443 is configured with wrong protocol
"http" for "https://localhost:8443/MyService";

My understanding is that I should set up my CXF endpoint as usual and then
remove the embedded Jetty instance.   That way the bundle doesn't attempt to
start a standalone instance of Jetty.  Originally in standalone mode i used
a bean like this:

        <httpj:engine-factory id="MyHttpsSettings"
                bus="cxf">

Any ideas of how I can set up multiple bundles in the same SMX instance that
use different WSDLs / schemas on the same port?

Thanks!
Yogesh



--
View this message in context: 
http://camel.465427.n5.nabble.com/Problem-with-multiple-CXF-services-using-the-same-https-port-tp3379301p5762264.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to