>
> The local variable comes into existence when the method gets
> called, but that
> does NOT guarantee that the object these variables refer to are
> thread safe.
> For example, if you have the following statement in your doGet()
> or doPost()
> method:
>
>     HttpSession session = request.getSession(true);
>


> you have just created a local variable named "session", but the
> session object
> itself is shared -- and, in particular, the objects that users store there
> with session.putValue() need to be designed to deal with a multi-threaded
> environment.

Only true if you are processing requests that have the same session ID and
then something
is probably not working as it should.

Andy Bailey

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to