dev@jax-ws.java.net

Re: Thread safety of the JAX-WS API

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 03 Oct 2006 19:52:21 -0700

Doug Kohlert wrote:
> I thought Roberto's comment was that he didn't think the the thread
> safety thing should be in the spec. I thought he was talking about some
> text stating that the Service objects should not be created in a tight
> loop and that is what I didn't think should go in the spec.

Right. Sorry.

But I still think we should make Service thread-safe. If it takes 5
seconds to create a service instance, then it's not just a matter of not
creating it in a tight loop. We really need to let people reuse service
objects, and I don't think we want people to create one copy per thread.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com