When I try to use the ThreadLocalSessionContext in the following way:
Session hsession = HibernateUtils.getSession();
ThreadLocalSessionContext.bind(hsession);
// do stuff
hsession.close();
I do this for every single Struts Action. Is there something I am doing wrong, causing me to get the following error?
[ThreadLocalSessionContext] Already session bound on call to bind(); make sure you clean up your sessions!
I checked all my files that had ThreadLocalSessionContext.bind in them and made sure these sessions are explicitly closed. Is there a way to monitor when sessions are binded onto session factories?
Thanks!!