Hi
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?
No
A thread safe flag can be set on JAXRSClientFactoryBean
Sergey
John