arijith wrote:
> Hi ,
>
> I seem to have run into a problem with the HttpSession object and
> multithreaded behaviour.
>
> I am storing a variable in the session object which I need to retrieve for
> the next call from the user. Now when I test the servlet using two
> simultaneous calls I find the value is getting overwritten by the thread
> leaving the servlet last instead of the thread modifying the value of the
> session variable
>
> The simultaneous calls are from the same session i.e I click on the submit
> button twice in quick succession .
>
If the two requests are from the same session, this is exactly the correct
behavior. It is up to you to deal with application level synchronization as
necessary.
Craig McClanahan
___________________________________________________________________________
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