You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Veit Guna <Ve...@gmx.de> on 2016/08/24 10:58:14 UTC

JAX-RS Features and JAXRSClientFactoryBean

Hi.

I'm using CXF 3.1.6 for generating JAX-RS client proxies from my service interface.
I also register my custom JAX-RS filters etc. using setProviders() on the factory.
That works so far.

Now I have a JAX-RS Feature that I wanted to register at the JAXRSClientFactoryBean
the same way. But it seems that the Feature's configure(FeatureContext) method
is never called.

Are JAX-RS Features actually supported?

Thanks
Veit

Re: Aw: Re: JAX-RS Features and JAXRSClientFactoryBean

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi Veit
On 24/08/16 12:27, Veit Guna wrote:
> Hi Sergey.
>
> Thanks for the quick response and looking into this!
>
> With "2.0 Client API" you mean JAX-RS WebTarget.register(), right?
>
Yes, you can also do it with ClientBuilder/Client as far as I recall

Thanks, Sergey
> Cheers
> Veit
>
>> Gesendet: Mittwoch, 24. August 2016 um 13:13 Uhr
>> Von: "Sergey Beryozkin" <sb...@gmail.com>
>> An: users@cxf.apache.org
>> Betreff: Re: JAX-RS Features and JAXRSClientFactoryBean
>>
>> Hi Veit
>>
>> On 24/08/16 11:58, Veit Guna wrote:
>>> Hi.
>>>
>>> I'm using CXF 3.1.6 for generating JAX-RS client proxies from my service interface.
>>> I also register my custom JAX-RS filters etc. using setProviders() on the factory.
>>> That works so far.
>>>
>>> Now I have a JAX-RS Feature that I wanted to register at the JAXRSClientFactoryBean
>>> the same way. But it seems that the Feature's configure(FeatureContext) method
>>> is never called.
>>>
>>> Are JAX-RS Features actually supported?
>>
>> Only as part of 2.0 Client API.
>> But they are now also supported on the server side so I guess it can be
>> easy enough to get it supported at the client factory bean side too.
>> Will try to have a look
>>
>> Thanks, Sergey
>>
>>>
>>> Thanks
>>> Veit
>>>
>>
>>


Aw: Re: JAX-RS Features and JAXRSClientFactoryBean

Posted by Veit Guna <Ve...@gmx.de>.
Hi Sergey.

Thanks for the quick response and looking into this!

With "2.0 Client API" you mean JAX-RS WebTarget.register(), right?

Cheers
Veit

> Gesendet: Mittwoch, 24. August 2016 um 13:13 Uhr
> Von: "Sergey Beryozkin" <sb...@gmail.com>
> An: users@cxf.apache.org
> Betreff: Re: JAX-RS Features and JAXRSClientFactoryBean
>
> Hi Veit
> 
> On 24/08/16 11:58, Veit Guna wrote:
> > Hi.
> >
> > I'm using CXF 3.1.6 for generating JAX-RS client proxies from my service interface.
> > I also register my custom JAX-RS filters etc. using setProviders() on the factory.
> > That works so far.
> >
> > Now I have a JAX-RS Feature that I wanted to register at the JAXRSClientFactoryBean
> > the same way. But it seems that the Feature's configure(FeatureContext) method
> > is never called.
> >
> > Are JAX-RS Features actually supported?
> 
> Only as part of 2.0 Client API.
> But they are now also supported on the server side so I guess it can be 
> easy enough to get it supported at the client factory bean side too.
> Will try to have a look
> 
> Thanks, Sergey
> 
> >
> > Thanks
> > Veit
> >
> 
> 

Re: JAX-RS Features and JAXRSClientFactoryBean

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi Veit

On 24/08/16 11:58, Veit Guna wrote:
> Hi.
>
> I'm using CXF 3.1.6 for generating JAX-RS client proxies from my service interface.
> I also register my custom JAX-RS filters etc. using setProviders() on the factory.
> That works so far.
>
> Now I have a JAX-RS Feature that I wanted to register at the JAXRSClientFactoryBean
> the same way. But it seems that the Feature's configure(FeatureContext) method
> is never called.
>
> Are JAX-RS Features actually supported?

Only as part of 2.0 Client API.
But they are now also supported on the server side so I guess it can be 
easy enough to get it supported at the client factory bean side too.
Will try to have a look

Thanks, Sergey

>
> Thanks
> Veit
>