You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Russell Butek <bu...@us.ibm.com> on 2002/01/07 20:00:04 UTC

Generated stubs are not thread safe

Our generated stubs each have a single Call object which is reused in each
method.  The way this Call object is used is not thread safe.  We have to
do one of the following:

1.  synchronize each method.
2.  instantiate a new call object in each method.
3.  any other options?

Do folks have a preference?

Russell Butek
butek@us.ibm.com


Re: Generated stubs are not thread safe

Posted by Per Salmi <pe...@syzito.com>.
I am using some generated stubs for calling a SOAP service from within a
servlet
running under Tomcat. When I put some load on the servlet I get exceptions
from the
stub or Call object saying something about wrong number of parameters.

Is this a typical sign that I have hit this problem with non thread safe
stubs?

/Per Salmi

----- Original Message -----
From: "Russell Butek" <bu...@us.ibm.com>
To: <ax...@xml.apache.org>
Sent: Monday, January 07, 2002 8:00 PM
Subject: Generated stubs are not thread safe


> Our generated stubs each have a single Call object which is reused in each
> method.  The way this Call object is used is not thread safe.  We have to
> do one of the following:
>
> 1.  synchronize each method.
> 2.  instantiate a new call object in each method.
> 3.  any other options?
>
> Do folks have a preference?
>
> Russell Butek
> butek@us.ibm.com
>
>