users@glassfish.java.net

Re: how to release connections back to the connection pool

From: <glassfish_at_javadesktop.org>
Date: Fri, 15 Feb 2008 10:21:30 PST

Basically, if the connection pool is configured in glassfish, you just close the connection and it gets but back into the pool. Make sure that myCon.closeCon() actually calls myCon.close() on the connection. This should be done in a finally clause of a try block to ensure it happens.

HTH,

TB
[Message sent by forum member 'travbow' (travbow)]

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