If you use Karaf or ServiceMix, you can leverage on the HTTP OSGI service.
You have to configure your Jetty instance in jetty.xml. In your Camel
endpoint, you will only use the context path like "/services/MyService"
instead of "http://0.0.0.0:8443/context/services/MyService";.
By default, CXF will add the context path "cxf" so that your service will
be available at "http://<server>:<port>/cxf/services/MyService"
Checkout [1], [2] and [3].

[1] http://camel.apache.org/cxf-example-osgi.html
[2]
https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-cxf-osgi/
[3]
https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-cxf-osgi/src/main/resources/META-INF/spring/camel-context.xml

Best,
Christian

On Mon, Oct 1, 2012 at 6:17 PM, Sunil Pandit <spand...@csc.com> wrote:

> Folks ,
>
> I am new to Camel and this is first time I am playing with Camel . I
> noticed
> in all examples especially the one which has Jetty Consumer endpoint in
> FORM
> URI has port # hardcoded .
>
> Is there any way to externalize this port # ?  Rather we would like this
> URL
> to have the port # which is configured in Jetty.xml
>
> How can we do that ?
>
> Thanks
> Sunil
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/PORT-in-Jetty-Consumer-endpoint-tp5720317.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--

Reply via email to