dev@jax-ws.java.net

Thread safety of web service objects/proxies/ports

From: David Bala?ic <xerces9_at_gmail.com>
Date: Tue, 8 Dec 2009 14:25:16 +0100

(I'm trying my luck here as I got no reply on the users list)

Hi!

I googled and found this:
http://forums.java.net/jive/thread.jspa?messageID=328373

quote: "We need to know whether the service objects generated by
wsimport (JAX-WS RI 2.0.1 and later versions), as well as the port
objects returned by the getPort() methods of those service objects are
thread-safe."

So is there a definitive answer?

I am doing a cleanup in our project and want to know:
 - can I reuse the same proxy object returned by a single getPort()
call in multiple threads?
or
- can I at least call the getPortName() method javax.xml.ws.Service
child from mulriple threads?

We use tomcat 6.0.20 and jaxws-api-2.1.jar  jaxws-rt-2.1.4.jar
jaxws-tools-2.1.5.jar

Regards,
David