axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ferguson, Neil, VF-NZ" <>
Subject RE: Generated code not Thread safe
Date Mon, 30 Jan 2006 00:16:55 GMT

You might find this recent discussion on this mailing helpful:

Basically, the generated stub doesn't seem to be thread-safe, but it
doesn't seem to be very expensive to create a new stub each time you
want one. The service locator does seem to be thread-safe (and is
relatively expensive to create), so you can cache this.

Hope this helps.


-----Original Message-----
From: Alsarraf, Laheeb (NIH/OD) [C] [] 
Sent: Saturday, 28 January 2006 8:51 a.m.
Subject: Generated code not Thread safe

I have used axis 1.1.2 and axis 1.1.3 to generate client code for a web
service. I tested the generated code for multithreading and the program
deadlocks. I added "Synchronized" keyword in the method createCall() of
the generated code and that solved the problem.
Has anyone had thread safety problems with web service client code
generated using axis.
Here is the command I use to generate the code:
java -cp %AXISCP% org.apache.axis.wsdl.WSDL2Java --timeout -1 %*
Laheeb Alsarraf

Have you seen our website?....

Manage Your Account, check your Vodafone Mail and send web2TXT online:

CAUTION: This correspondence is confidential and intended for the named recipient(s) only.
If you are not the named recipient and receive this correspondence in error, you must not
distribute or take any action in reliance on it and you should delete it from your system
notify the sender immediately.  Thank you.

Unless otherwise stated, any views or opinions expressed are solely those of the author and
not represent those of Vodafone New Zealand Limited.

Vodafone New Zealand Limited
20 Viaduct Harbour Avenue, Private Bag 92161, Auckland 1030
Telephone + 64 9 355 2000
Facsimile + 64 9 355 2001

View raw message