CXF Thread Safety

by ariekenbon 2010-03-02T13:14:04+00:00

I'm trying to figure out which of the following are thread safe.
I was under the impression originally that separate JaxWsProxyFactoryBeans
are independent from each other, but I started worrying that they are all
using the same global BusFactory and things might try to be initialized at
the same time.
I'm seeing intermittent exceptions when doing some of these things, so I'm
thinking some of these things are not safe.
1. Creating JaxWsProxyFactoryBeans for the same or different services in
multiple threads.
2. Creating a JaxWsProxyFactoryBean at the same time a different thread is
initializing a spring context containing a 3. Calling JaxWsProxyFactoryBean.create() on the same instance of a
JaxWsProxyFactoryBean from multiple threads.
4. Using one proxy created by JaxWsProxyFactoryBean.create() in multiple
threads at the same time.

Re: CXF Thread Safety

by Daniel Kulpon 2010-03-04T02:40:03+00:00.
On Tuesday 02 March 2010 9:13:34 am ariekenb wrote:
This should be fine.
This should also be fine, I think.
Probably not.
Yes, except for the stuff noted in the faq:
http://cxf.apache.org/faq.html#FAQ-AreJAXWSclientproxiesthreadsafe%253F
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog