cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <ben...@basistech.com>
Subject Re: org.apache.cxf.rs.httpservice.context versus org.apache.cxf.servlet.context=/rest in karaf
Date Mon, 18 Jul 2016 13:47:35 GMT
The doc is pretty confusing. It says that if I use
'org.apache.cxf.rs.address' that CXF will ignore the pax-web / HTTP
service and launch its own jetty, which is not what I want. If it
works as you say, we should fix the doc.

On Mon, Jul 18, 2016 at 5:05 AM, Christian Schneider
<chris@die-schneider.net> wrote:
> Normally you should not use the context property.
>
> Just set a org.apache.cxf.rs.address=/rest/v1
>
> It will result in /cxf/rest/v1.
> Would that be a problem?
>
> Christian
>
>
>
> On 17.07.2016 21:27, Benson Margulies wrote:
>>
>> I think you are mixing in org.apache.cxf.rs.address, which is what is
>> documented to cause the direct use of the HTTP transport.
>>
>>
>> On Sun, Jul 17, 2016 at 3:26 PM, Sergey Beryozkin <sberyozkin@gmail.com>
>> wrote:
>>>
>>> On 17/07/16 22:19, Benson Margulies wrote:
>>>>
>>>> If I have a setting in
>>>>
>>>> etc/org.apache.cxf.osgi.cfg
>>>>
>>>> of
>>>>
>>>> org.apache.cxf.servlet.context=/rest
>>>>
>>>> and then I set a service property of
>>>>
>>>> org.apache.cxf.rs.httpservice.context=/v1
>>>>
>>>> I'm expecting to net out to /rest/v1. Is that what a good belief?
>>>>
>>> I vaguely recall that setting the former means DOSGI will itself register
>>> a
>>> servlet with OSGI HTTP Service, in the latter case you are configuring a
>>> default CXF Servlet which CXF HttpTransport registers.
>>> There could be some variations there, Christian knows it all
>>>
>>> Sergey
>>>
>>>
>>>
>>> --
>>> Sergey Beryozkin
>>>
>>> Talend Community Coders
>>> http://coders.talend.com/
>
>
>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com
>

Mime
View raw message