tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pon Umapathy K.S." <umapa...@cisco.com>
Subject Tomcat's ThreadPool and InheritableThreadLocal variables
Date Thu, 04 Dec 2003 12:09:02 GMT
Hi,
 A query regarding InheritableThreadLocal variables in the tomcat context.

To explain the problem i am facing:
 If i am correct,for each request,tomcat uses a thread from it's threadpool
to process the request.
 Suppose during one of these requests,i set the value of a
InheritableThreadLocal variable.Once this request is processed,the thread
will be available for use from the ThreadPool.Does tomcat reset the value of
the InheritableThreadLocal variable which was set by the previous request
processing?(it should,ideally). The tomcat version i am using is 3.3.1a.Also
use the struts framework model.

 It seems to me that the InheritableThreadLocal value which was set by a
previous request on a thread is still retained when that thread is reused
for processing another request.Are there any known issues regarding this?
 Would be really helpful if someone can answer this.A bit urgent.Thanks in
advance.

Regards,
Umapathy


---------------------------------------------------------------------
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