> See ...
> http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669
>
> (I really need to update the FAQ on this one)
>
> -Tim

Thanks for the info. A followup question...
"The second one is where the application has ThreadLocal data that is
attached to a container thread. In tomcat this thread will be part of
the thread pool, so it will never be garbage collected."

We use ThreadLocal to handle our Hibernate Session. In
ServletContextListener.contextDestroyed, I call a destroy method on
the class doing the handling that cleans up the Hibernate Sessions and
nulls out the ThreadLocal. Will this allow it to be gc'd or will
Tomcat still hold onto a reference?

thx
andy

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

Reply via email to