axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Brunsmann <joerg_brunsm...@yahoo.de>
Subject AxisServlet doPost synchronization
Date Mon, 09 Apr 2001 12:38:58 GMT
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

Mime
View raw message