Dear lord, that's too obvious... it's gotta be harder than that. :-D

Thanks, JB
Raffi

-----Original Message-----
From: Jean-Baptiste Onofré [mailto:[email protected]] 
Sent: Sunday, January 03, 2016 12:41 AM
To: [email protected]
Subject: Re: Custom http port for CXF web app [ EXTERNAL ]

Hi Raffi,

you can specify the URI on the CXF endpoint:

address="http://0.0.0.0:9999/health";

as the address is absolute, CXF will create a new Jetty connector there.

Regards
JB

On 01/03/2016 04:58 AM, Basmajian, Raffi wrote:
> When deploying CXF in Karaf, how may I override the http port? I'm 
> using JBoss Fuse 6.2 which uses Jetty web container, so my web service 
> picks up port 8181, but I want my service to run on 8191. Found this 
> from JB, confirms what I already know, but no info on customizing http port:
>
> http://blog.nanthrax.net/2011/08/jax-rs-services-using-cxf-and-karaf/
>
> I'm assuming this requires a new connector in jetty.xml, but I'm not 
> sure how to configure blueprint to pick up the new jetty connector/port.
> My current blueprint xml..
>
> <blueprint>
>
>          <bean  id="jsonProvider"
>
>
> class="com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider" />
>
>                                  <bean   id="healthCheckService"
> init-method="init" destroy-method="destroy"
>
>
> class="messaging.monitors.health.HealthcheckHttpService"/>
>
>          <jaxrs:server id="healthCheckEndpointServer" 
> address="/health">
>
>                  <jaxrs:serviceBeans>
>
>                          <ref component-id="healthCheckService" />
>
>                  </jaxrs:serviceBeans>
>
>                  <jaxrs:providers>
>
>                          <ref component-id="jsonProvider" />
>
>                  </jaxrs:providers>
>
>          </jaxrs:server>
>
> </blueprint>
>
> Raffi
>
> This e-mail transmission may contain information that is proprietary, 
> privileged and/or confidential and is intended exclusively for the
> person(s) to whom it is addressed. Any use, copying, retention or 
> disclosure by any person other than the intended recipient or the 
> intended recipient's designees is strictly prohibited. If you are not 
> the intended recipient or their designee, please notify the sender 
> immediately by return e-mail and delete all copies. OppenheimerFunds 
> may, at its sole discretion, monitor, review, retain and/or disclose 
> the content of all email communications.

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

This e-mail transmission may contain information that is proprietary, 
privileged and/or confidential and is intended exclusively for the person(s) to 
whom it is addressed. Any use, copying, retention or disclosure by any person 
other than the intended recipient or the intended recipient's designees is 
strictly prohibited. If you are not the intended recipient or their designee, 
please notify the sender immediately by return e-mail and delete all copies. 
OppenheimerFunds may, at its sole discretion, monitor, review, retain and/or 
disclose the content of all email communications.

Reply via email to