Objects in a session are NOT thread safe. Read the archive for discussions
of this. As a precis -

A browser may have more than one window open, so be sharing a session,
A browser may have more than one frame, so be sharing a session,

Kevin Jones
DevelopMentor

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Hai-Bang Pham
Sent: 10 January 2000 21:15
To: [EMAIL PROTECTED]
Subject: Session between servlet/JSP thread-safe?


Hello,

Is a session that is accessed by servlets and JSPs thread-safe?  i.e.
can the folowing scenario occur:

Servlet1 puts bean with value A into session -> forwards to JSP for
display but before the page can get the bean from the session it is
pre-empted by Servlet2 which changes the bean's value to B -> once the
JSP is resumed it will display B instead of A.

Thanks in advance.
-Hai

___________________________________________________________________________
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

___________________________________________________________________________
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