dev@jax-ws.java.net

Re: Thread safety of the JAX-WS API

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Tue, 03 Oct 2006 16:05:18 -0700

Roberto Chinnici wrote:

> 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.
>
I am not sure this should be addressed in the spec as another
implementation might be much faster at creating a Service instance.

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: dev-help_at_jax-ws.dev.java.net
>