You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Alsarraf, Laheeb (NIH/OD) [C]" <Al...@mail.nih.gov> on 2006/01/27 20:51:01 UTC

Generated code not Thread safe

Hello,

 

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 %*

 

 

Thanks

 

Laheeb Alsarraf