Hi,

Please checkout my comments in the below email.

On Thu Jul 19 05:35:55 2012, helander wrote:
Hi Christian,

I am using Karaf 2.2.8.

I wanted to create a setup where I had two separate web servers (two Pax Web
instances) each with its own set of configuration parameters (port numbers,
security settings etc). Access to my cxf endpoints should only be possible
via one of these web servers.

How do cxf endpoints connect to Pax Web? Do they listen on all osgi http
service instances found in the service registry or could you limit this
based on some service property or other method?
CXF will try to exports cxf servlet as OSGi service, the the PaxWeb will pick it up when loading the CXF bundle. I'm not sure if you can create more than one instance of PaxWeb in Karaf, But current CXF bundle doesn't provide addition property for the cxf servlet.


Another way to achieve my most important requirement (to only allow access
via https to the cxf endpoints, while being able to access webconsole etc
via http) could possibly to use an interceptor on the endpoints that would
check if the transport is https or http and only allow access for https
requests? Or perform the same type of check in the route "immediately"
(=early in the route) after the message is consumed from the endpoint?

Not sure what kind of web console are you using?
Maybe you can consider to create another Karaf instance to hold the different configuraiton of PaxWeb, if the console has nothing to do with the camel-cxf endpoints that you want to expose.


/Lars



--
View this message in context: 
http://camel.465427.n5.nabble.com/cxfEndpoints-and-different-transports-http-https-using-PAX-Web-tp5716216p5716219.html
Sent from the Camel - Users mailing list archive at Nabble.com.




--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
        http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to