Hi,
You can use thread local settings in binding provider to make parameters thread
safe:
((BindingProvider)proxy).getRequestContext().put("thread.local.request.context",
"true");
See http://cxf.apache.org/faq.html#FAQ-AreJAX-WSclientproxiesthreadsafe?
Regards,
Andrei.
> -----Original Message-----
> From: smirnov.kirill [mailto:[email protected]]
> Sent: Donnerstag, 6. November 2014 21:48
> To: [email protected]
> Subject: Re: How can I make client requests with dynamic headers?
>
> Thanks, but I suppose there can be problems with concurrency... If I'm not
> mistaken, some message from another thread can be sending between setting
> headers via dispatch and calling service via SEI in the original thread. So it
> seems I should make method which sends requests synchronized.
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/How-can-I-
> make-client-requests-with-dynamic-headers-tp5750756p5750808.html
> Sent from the cxf-user mailing list archive at Nabble.com.