> How do I ensure that connection is freed? > I close the connection in the code but does > that alert DBCP that the connection is now free.
Yes, exactly. If you dig into the implementation, you'll see that the Connnections returned by DBCP are actually PoolableConnections wrapping the underlying Connection created by your DataSource or Driver. PoolableConnection.close returns the underlying Connection to the pool.
