> Mukul Gandhi wrote:
>
> > Hi Craig,
> > u said regarding HttpSession object created in doPost() or doGet(). I
> know
> > these facts(Pl correct if I am wrong) -
> > 1. If many users are invoking the same servlet, then a Httpsession
> object
> > is created for each user. These session objects for different users are
> > existing in various threads(1 thread per servlet invocation) and don,t
> > share anything.
>
> Yes, a unique session object is created for each user. Objects you store
> in a
> session for one user are not shared with session objects stored in other
> sessions
> for other users.
>
> No, you cannot assume that this fact *alone* makes you thread-safe,
> because you
> cannot assume that the same user will not trigger more than one request at
> the
> same time (which would be handled by different threads accessing the same
> session
> object).
>
[Scheiderer, Stephan]
SO, do I have to synchronize session object access??? (If a user
makes 2 requests at one time...)
[Scheiderer, Stephan] ????????????????
Does that anybody of you? Is this really necessary?
___________________________________________________________________________
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