dev@jax-ws.java.net

Re: Thread safety of the JAX-WS API

From: Roberto Chinnici <Roberto.Chinnici_at_Sun.COM>
Date: Tue, 03 Oct 2006 14:52:01 -0700

Kohsuke Kawaguchi wrote:
> Roberto Chinnici wrote:
>> Kohsuke Kawaguchi wrote:
>>>
>>> Does the API say something about the thread safety of various JAX-WS
>>> objects?
>>>
>>> See http://forums.java.net/jive/thread.jspa?threadID=18756
>>
>> No, it doesn't. So no thread safety should be assumed.
>
> The point is, shouldn't we say something about it? Especially given
> that a service is such an expensive object to create...

With the premise that Javadocs don't have to call out all negative
properties of an API (by "negative" I mean properties that a
class/method does not have), it may be helpful to provide guidelines
to users so that they don't do things like creating service
objects in a tight loop.