Hello Lars!

Which version of Karaf do you use?
Find my comments inline.

Best,
Christian

On Wed, Jul 18, 2012 at 8:07 PM, helander <leh...@gmail.com> wrote:

> I am using cxfEndpoints with Pax Web in a Karaf container (and Camel routes
> consuming from these endpoints).
>
> I like the way that I only have to specificy the address relative to the
> http://cxf context in my endpoints, but I would like to limit the
> available
> transport for the endpoint to https. Can I do that on the endpoint?
>
Yes.  See
http://team.ops4j.org/wiki/display/paxweb/Configuration#Configuration-configViaConfigAdmin
If you are considering to use ServiceMix, there is already a file
${SMX_HOME}/etc/org.ops4j.pax.web.cfg.empty.stub. Simply rename it to
org.ops4j.pax.web.cfg and change the properties you want
(org.osgi.service.http.secure.enabled=true and so on ...).

>
> Can I have 2 different Pax Web instances serving on different port sets
> (http and/or https) and specify which one that the cxfEndpoints hook up to?
> If so, could you specify this per cxfEndpoint, per cxf-bus or do all
> cxfEndpoints in the same container connect to the same Pax Web instance?
>
What do you mean with "2 different Pax Web instances"? There is one jetty
running which you have to configure for your needs. This could be done by
providing a jetty.xml file in the same directory. There you can configure
multiple ports and protocols (HTTP, HTTPS).
But it's not possible to bind a particular CXF service to a particular
port. See my question a few weeks ago:
http://cxf.547215.n5.nabble.com/changing-context-path-in-OSGI-from-quot-cxf-quot-to-quot-quot-td5530551.html#a5709011


> For various reasons I would like the cxfEndpoints be served by some other
> port (Pax Web instance) than the port where user interfaces, e.g.
> webconsole, are served, so any information about being able to associate
> cxf
> with a secondary Pax web instance would be most helpful.
>
Change "org.osgi.service.http.port=8181" or
"org.osgi.service.http.port.secure=8443" in your
${HOME}/etc/org.ops4j.pax.web.cfg file or provide a custom jetty.xml file.

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

Reply via email to