Thank you Sergey, I got it working with your advice, do you think it should
be added to the project wiki? or is it already there?

On Thu, Oct 22, 2009 at 4:25 AM, Sergey Beryozkin <sbery...@progress.com>wrote:

> Hi
>
> For changing the port please update etc/system.properties  (sorry, not
> etc/config.properties):
>
> org.osgi.service.http.port=9090
>
> 'cxf' context :
>
>  You can add an
>>> org.apache.cxf.osgi.cfg to /etc directory and set the
>>> 'org.apache.cxf.servlet.context' property to say '/' or '/custom' and it
>>> will be used instead of 'cxf'.
>>>
>>
>
> cheers, Sergey
>
>
>
>> Hi Sergey, what exactly should be added to etc/config.properties to change
>> cxf context and 8181 port??
>>
>>
>>
>>
>> Sergey Beryozkin-2 wrote:
>>
>>>
>>> Starting with 2.2.4 it is also possible to configure an alias for the CXF
>>> servlet.
>>> Example :
>>>
>>>  For the most part, in the spring config, instead of importing
>>>> META-INF/cxf/cxf-extension-http-jetty.xml
>>>> you would import
>>>> META-INF/cxf/osgi/cxf-extension-osgi.xml
>>>>
>>>> The "address" used on jaxws:endpoint and such would just be:
>>>>
>>>> /blah
>>>>
>>>> with no http://host:port type thing.
>>>>
>>>
>>> would result in http://host:8181/cxf/blah URI being support but a given
>>> jaxws or jaxrs endpoint.
>>>
>>> Port '8181' can be changed in the etc/config.properties. You can add an
>>> org.apache.cxf.osgi.cfg to /etc directory and set the
>>> 'org.apache.cxf.servlet.context' property to say '/' or '/custom' and it
>>> will be used instead of 'cxf'. This property can also be configured using
>>> shell config commands and indeed the changes can be
>>> persisted and restored after the restart  with the latest Karaf fix from
>>> Guilluame.
>>>
>>> cheers, Sergey
>>>
>>>  On Mon October 19 2009 4:57:30 pm Oliver Wulff wrote:
>>>>
>>>>> Hi there
>>>>>
>>>>> When a customer deploys several applications into an osgi container
>>>>>  (servicemix 4.x) each bundle configures/(instantiates) a jetty engine
>>>>> with
>>>>>  security configurations etc. An idea is to re-use the osgi http
>>>>> service.
>>>>>  Is this possible? Somehow, the osgi http service must know under which
>>>>>  circumstances the request should be dispatched to cxf.
>>>>>
>>>>
>>>> Yes.   Wit CXF less than 2.2.4, you would need the osgi http transport
>>>> for cxf
>>>> thing that smx 4 has in their svn repo someplace.   With 2.2.4, we moved
>>>> that
>>>> code into cxf where we can maintain it better.
>>>>
>>>> For the most part, in the spring config, instead of importing
>>>> META-INF/cxf/cxf-extension-http-jetty.xml
>>>> you would import
>>>> META-INF/cxf/osgi/cxf-extension-osgi.xml
>>>>
>>>> The "address" used on jaxws:endpoint and such would just be:
>>>>
>>>> /blah
>>>>
>>>> with no http://host:port type thing.
>>>>
>>>>
>>>> --
>>>> Daniel Kulp
>>>> dk...@apache.org
>>>> http://www.dankulp.com/blog
>>>>
>>>
>>>
>>>
>>>
>> --
>> View this message in context:
>> http://www.nabble.com/Use-of-OSGi-http-service-instead-of-jetty-engine-tp25965535p25998548.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>


-- 
Jaime Hablutzel

(tildes omitidas intencionalmente) 9 8964 0369

Reply via email to