users@glassfish.java.net

Re: How to fix connection leaks.

From: <glassfish_at_javadesktop.org>
Date: Wed, 15 Jul 2009 07:56:35 PDT

The leak stack trace indicates the caller that has acquired the connection but did not close the connection (there by leaking the connection)
Check the code where you close the connection, make sure that it is always closed (even in case of database failures or any other exceptions) in "finally" block.
[Message sent by forum member 'jr158900' (jr158900)]

http://forums.java.net/jive/thread.jspa?messageID=355791