I believe it all depends on what objects you are storing in session. If you instantiate an Object and place it in session inside doGet()/doPost() methods, they are unique to the session and thus cannot be shared. But if you somehow access the other sessions or their objects stored in them, then there can be a problem(I believe there is a way of doing it). There can also be problems if the resources instantiated in the init() method of servlet are accessed.
Nauman ----- Original Message ----- From: "Clemente Dani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 12:22 PM Subject: Re: Does Tomcat Synchronize the Session Object??? > I think that the session object is thread safe itself, but not the > objects that you can store and retrive from it. I mean, the operations > of extracting and introducing objects in it are safe, but if you get > from it an object, this object is the same for all the sessions, and > is in this object where you must take care of sinchronization yourself. > > > I hope this helps you. If I'm wrong, I expect some one to write the > correct answer. > > Bye, Dani > > > __________________________________________________________________ > > > > __________________________________________________________________ > Dale un toque personal a tu m�vil con los logos m�s divertidos en: > http://www.vizzavi.es/Logos > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
