krebsnet wrote:
Hi,
I'm running hibernate in a tomcat container and there seems to be a background thread that is printing a message to console saying...
WARNorg.hibernate.jdbc.ConnectionManager [WARN ] - unclosed connection, forgot t
o call close() on your session?
I make a lot of calls to hibernate and am wondering if there is a way where I can get some more info as to what session is open.
It's not a background thread. This message is displayed when prior to the ConnectionManager being GC'd in the finalize method.
You need make sure that you are always closing a session prior to returning the response to the User.