Depends, do you actually expect your users to have your site up in multiple
browser windows of the same machine so that the session data would actually
be accessed by multiple threads concurrently.  It's usually not a problem,
but there are some site types that have to worry about this more than
others.  If you can see people opening multiple browser instances (or if you
force windows open in your site code), then I'd say synchronize.
  (*Chris*)

----- Original Message -----
From: "Fei Li" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 8:15 AM
Subject: [SERVLET-INTEREST] sharing


> Hi,
>
> I have a class instance staying in session. Should I synchronize the
methods
> in the class?
> Please reason your help.
>
> Thanks
>
> Fei Li
>
>
___________________________________________________________________________
> 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