cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <>
Subject Re: JAX-RS Client Injection
Date Sun, 23 Oct 2016 20:08:39 GMT

On 23/10/16 20:52, John D. Ament wrote:
> Hi,
> Wanted to get some input on this.  I raised a ticket to add CDI support for
> client injection, which I'm assuming is both the JAX-RS clients and the
> built in CXF clients, including proxy clients.
> The way I see it, JAX-RS clients are straight forward, dependent beans via
> newClient() method calls.
> However, for the proxy clients, this is a bit trickier I think.  Should the
> underlying proxied client be application scoped? or dependent (the old
> prototype vs singleton question from spring)?

Root proxies are created once, sub-resource proxies can be created per 
request, depending on the transition to the subresource (static vs 
dynamic, ex, /hello vs /{id})

> Are the clients inherently
> thread safe?


A thread safe flag can be set on JAXRSClientFactoryBean


> John

View raw message