camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bitter geek <bitterg...@gmail.com>
Subject Re: Rest client
Date Wed, 25 Jul 2012 08:30:46 GMT
Hi Sergey,

Can you elaborate on how to use CXF RS endpoint without using the producer?

You help is much appreciated.

Thanks,

Bing

On 7/24/12, Sergey Beryozkin <sberyozkin@gmail.com> wrote:
> I lost your private email,
>
> the CXF RS endpoint is safe, only the producer is not right now
>
> Cheers, Sergey
>
> On 24/07/12 15:00, Sergey Beryozkin wrote:
>> Hi
>> On 24/07/12 14:52, bitter geek wrote:
>>> Hi All,
>>>
>>> I'm a bit confused with the sample code for creating rest endpoint.
>>>
>>> I do not have access to the rest service class but only want to create
>>> a rest endpoint to use with camel.
>>>
>>> Do I only need to create rsClient tag? If so, what class do I put
>>> there for serviceClass? Why does it need a serviceClass if this
>>> endpoint is just used to make an http request?
>>>
>> I believe this option is there to make a proxy based invocation, for the
>> produce/consumes types be derived from specific operations available on
>> the service class.
>>
>> However, the cxf rs producer is not thread safe right now.
>> So I'd recommend you try one of the other Camel HTTP components which
>> can make outbound calls till we get it fixed (http, jetty, etc - I'm
>> assuming they are thread-safe on the client side), or please experiment
>> with embedding direct thread-safe cxf jaxrs/web client references into
>> the root
>>
>> Sergey
>>
>>> In addition, how do I get hold of this endpoint in Java?
>>>
>>> Thanks a lot for your help!
>>>
>>> Bing
>>>
>>> /////////////////////////////////////////////////////
>>> <!-- Defined the server endpoint to create the cxf-rs consumer -->
>>> <cxf:rsServer id="rsServer"
>>> address="http://localhost:${CXFTestSupport.port1}/CxfRsRouterTest/route"
>>> serviceClass="org.apache.camel.component.cxf.jaxrs.testbean.CustomerService"
>>>
>>> loggingFeatureEnabled="true" loggingSizeLimit="20"/>
>>>
>>> <!-- Defined the client endpoint to create the cxf-rs consumer -->
>>> <cxf:rsClient id="rsClient"
>>> address="http://localhost:${CXFTestSupport.port2}/CxfRsRouterTest/rest"
>>> serviceClass="org.apache.camel.component.cxf.jaxrs.testbean.CustomerService"
>>>
>>> loggingFeatureEnabled="true" />
>>
>>
>
>
> --
> Sergey Beryozkin
>
> Talend Community Coders
> http://coders.talend.com/
>
> Blog: http://sberyozkin.blogspot.com
>

Mime
View raw message