is there any way to configure jboss to clear the ThreadLocal variables at the end of execution of the thread
===

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 not **Jboss 6**.