tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hanasaki JiJi <>
Subject ThreadLocal relationship to servlet requets and use to store variables
Date Thu, 30 Oct 2003 04:04:40 GMT
Does each http get/post, that comes in to a jsp/servlet, get its own thread?

Can this thread be used to store a hashmap that will be available like a 
global variable to all instances during the life or the http get/post 

What cleanup, if any, needs to be done?  I am assuming that tomcat uses 
a threadpool so a threadlocal must be cleaned in someway for when it is 
reused in the next request....?.....

Any issues in doing this in j2se1.3.x vs 1.4.x?

If this does work in tomcat, which versions?

Should this work across other servers such as resin, websphere, jboss?

Thank you,
= Management is doing things right; leadership is doing the     =
=       right things.    - Peter Drucker                        =
=       =
= | |   =

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message