I am deploying a web application under Jboss AS 5.1.0.GA and in my application, I'm using some
java.lang.Threadlocal variables. By definition,
java.lang.Threadlocal variables should be cleared by end of execution of the thread. In case of Application server, since its using a thread pool, the
java.lang.Threadlocal variables are not cleared.
Do you know how to configure
Jboss AS 5 to clear these java.lang.Threadlocal varibles? I already googled for that and i didn't find anything interesting. I am looking for a solution for Jboss 5 and notJboss 6.
I believe that you have to write code to do that. Typically we use a ServletFilter or ServletRequestFilter for this purpose.