This link [1] may help your to get the whole story.
[1]http://www.nabble.com/Request-ResponseContext-of-JaxWsClientProxy-td10327781.html#a10335673
Willem.
Sky-Tiger wrote:
See this:
public class JaxWsClientProxy extends org.apache.cxf.frontend.ClientProxy
implements
InvocationHandler, BindingProvider {
private static final Logger LOG =
LogUtils.getL7dLogger(JaxWsClientProxy.class);
protected Map<String, Object> requestContext = new
ConcurrentHashMap<String, Object>();
protected ThreadLocal <Map<String, Object>> responseContext =
new ThreadLocal<Map<String, Object>>();
Anybody can tell me why responseContext is threadlocal but requestContext
is not? That means BindingProvider is not thread-safe!
Is it a bug?