1 Reply Latest reply on Jul 24, 2012 9:52 AM by sfcoy

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

    m.abbas

      I am deploying a web application under Jboss AS 5.1.0.GA and in my application, I'm using somejava.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.