Hi!

Question about example of customizing proxies http://cxf.apache.org/docs/
jax-rs-client-api.html

I can set additiona headers, etc using this approach:

BookStore proxy = JAXRSClientFactory.create("http://books";, BookStore.class
);
WebClient.client(proxy).accept("text/xml");
// continue using the proxy

But what if "proxy" is injected by spring, as stated in Injecting proxies?
Will other threads see "configured" proxy?

Is race condtion possible, when first thread calls WebClient.client(proxy).
accept("text/xml"), then second calls
WebClient.client(proxy).accept("text/plain") ?

Reply via email to