AFAIK, Java does not provide any way to clear ThreadLocal variable values related to a given thread. As it is a language-level limitation, Tomcat can do nothing to resolve it. I tend to think that this is also a valid reason to consider not necessary to document it ;-)

Cheers,
Rodrigo Ruiz

In some ways,you are right.But,looking at it this way.

When it's said that each request is processed in a *new* thread,it is
reasonable to expect that thread-specific language constructs will be
handled.In this case,a new thread would mean new copies of ThreadLocal and
InheritableThreadLocal variables.
If this new thread is created in a customized manner(in this case,alloted
from a ThreadPool),I would say that the behaviour of the new Thread should
be modelled on the language defined lines.
It would be good if this is atleast documented somewhere. :)





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to