> Can you give
> an example where this is required?
HTML frames are another good example. When a browser encounters a page with a
frame, it will make multiple HTTP requests to get the pages associated with the
frame. If all of the pages in the frame use HTTP Sessions, then you could have
concurrent requests accessing the same session.
-Spike
-----
Spike Washburn
IBM WebSphere Application Server
Internet E-mail: [EMAIL PROTECTED]
Cezar Totth <[EMAIL PROTECTED]> on 07/05/99 05:38:53 AM
Please respond to "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Donald Washburn/Raleigh/IBM)
Subject: Re: Comments on 2.2 Public Review Draft
On Mon, 5 Jul 1999, Subrahmanyam A.V.B. wrote:
....
> - [Sec 7.7.1] Can a session object be shared across sessions?
yes
> Why is it
> required that session objects take care of synchronization?
Because no one else (like servlet container) will take care of it...
> Can you give
> an example where this is required?
The same requirements as for GUI single-user applications...
When user opens multiple browser windows and posts them
simultaneously ..
...
> multiple servlets can be shared using the SessionContext (and not
> session), and such objects should be synchronized against threading.
that depends, if such objects are thread safe or not..
Bye
Cezar
___________________________________________________________________________
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