You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by jlinho <th...@gmail.com> on 2015/01/04 21:14:48 UTC

Questions about "JAX-WS client proxies thread safery"

Hi everyone,

I have a question regarding "JAX-WS client proxies thread safery". (See
http://cxf.apache.org/faq.html#FAQ-AreJAX-WSclientproxiesthreadsafe?) . 

If at application startup I configure a client proxy with a fixed "HTTP
Basic auth" login/password and then share this proxy between multiple
threads will that be safe ? (After startup, no thread will modify the client
configuration hence all threads using same login/password)

Same question if I set up a client with a fixed WSS UsernameToken at startup
and then share this client between my threads will that be safe ?

Thanks in advance for your help.






--
View this message in context: http://cxf.547215.n5.nabble.com/Questions-about-JAX-WS-client-proxies-thread-safery-tp5752785.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Questions about "JAX-WS client proxies thread safery"

Posted by Jose MarĂ­a Zaragoza <de...@gmail.com>.
2015-01-04 21:14 GMT+01:00 jlinho <th...@gmail.com>:
> Hi everyone,
>
> I have a question regarding "JAX-WS client proxies thread safery". (See
> http://cxf.apache.org/faq.html#FAQ-AreJAX-WSclientproxiesthreadsafe?) .
>
> If at application startup I configure a client proxy with a fixed "HTTP
> Basic auth" login/password and then share this proxy between multiple
> threads will that be safe ? (After startup, no thread will modify the client
> configuration hence all threads using same login/password)
>
> Same question if I set up a client with a fixed WSS UsernameToken at startup
> and then share this client between my threads will that be safe ?
>
> Thanks in advance for your help.
>


According to docs : "For most "simple" use cases, you can use CXF
proxies on multiple threads.".
I think you are inside a simple use case.



>
>
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Questions-about-JAX-WS-client-proxies-thread-safery-tp5752785.html
> Sent from the cxf-user mailing list archive at Nabble.com.

Re: Questions about "JAX-WS client proxies thread safery"

Posted by Mark Streit <mc...@gmail.com>.
>From what I recall, and it's been a while since using JAX-WS, but I believe
the short answer is "no":

http://cxf.apache.org/faq.html#FAQ-AreJAX-WSclientproxiesthreadsafe?

HTH

Mark


On Sun, Jan 4, 2015 at 3:14 PM, jlinho <th...@gmail.com> wrote:

> Hi everyone,
>
> I have a question regarding "JAX-WS client proxies thread safery". (See
> http://cxf.apache.org/faq.html#FAQ-AreJAX-WSclientproxiesthreadsafe?) .
>
> If at application startup I configure a client proxy with a fixed "HTTP
> Basic auth" login/password and then share this proxy between multiple
> threads will that be safe ? (After startup, no thread will modify the
> client
> configuration hence all threads using same login/password)
>
> Same question if I set up a client with a fixed WSS UsernameToken at
> startup
> and then share this client between my threads will that be safe ?
>
> Thanks in advance for your help.
>
>
>
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Questions-about-JAX-WS-client-proxies-thread-safery-tp5752785.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>