tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arup Vidyerthy" <like_don...@yahoo.co.uk>
Subject RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
Date Tue, 06 Sep 2005 15:41:03 GMT
Guys,

I have been watching this thread with interest.

Does this mean that all session.setAttribute() and session.getAttribute()
should always be synchronised (for instance, inside a servlet or struts
action) provided the same hashmap is accessed by say more than one
servlet/struts action?

Kind regards...
Arup Vidyerthy. 

-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: 06 September 2005 15:54
To: Tomcat Users List
Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

> From: Leon Rosenberg [mailto:struts_user@anotheria.net]
> Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
> 
> and replace all req.getSession().setAttribute(beanName, beanValue) in 
> code with the call to this method (same for remove) and I've solved my 
> problem?

Unfortunately, you also need to change the places that retrieve attributes
from the Session, since the hash map is in a state of flux during the
setAttribute() invocations.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
http://uk.security.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message