Hello:

I'm using CXF 2.7.8 and I've got a question about JAX-RS proxy-client
thread-safety

According to this link:

http://cxf.apache.org/docs/jax-rs-client-api.html#JAX-RSClientAPI-ThreadSafety

"A single client doing multiple invocations without changing the
current URI or headers is thread-safe."

If I've got a proxy-client with a fixed base address

JAXRSClientFactoryBean bean = new JAXRSClientFactoryBean();
bean.setAddress("http://localhost:8080/WSEndpoint/";);
WSPortType client = bean.create(WSPortType.class);


Each call

client.doSomething()

or

client.doOtherThing()


means to invoke

http://localhost:8080/WSEndpoint/dosomething/

or

http://localhost:8080/WSEndpoint/dosotherthing/


is this proxy thread-safe ?
The URL is changing for every call , but I don't know if that means
that "multiple invocations without changing the current URI"  , or is
it only for base address ?

Thanks and regards

Reply via email to