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 Joerg Brunsmann <jo...@yahoo.de> on 2001/04/09 14:38:58 UTC

AxisServlet doPost synchronization

Hi,

if you have a look at the doPost method in the 
org.apache.axis.transport.http.AxisServlet you'll
see something like this (I deleted some lines):

    ServletContext context = config.getServletContext();
    synchronized(context) {
      engine = (Handler) context.getAttribute( AXIS_ENGINE );
    }

Is it necessary to synchronize the local 'context' variable?
If yes, why?

Thanks,

Jörg

__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de