I\'ve just started using BoneCP and pulled the sample JDBC code from the authors site.
I have a function called getConnection() that returns a connection here is a s
1. Always call connection.close() to return the connection to the pool (it won't be physically closed) when you're done with it.
connection.close()
2. Call connectionPool.shutDown() when you're completely done with the pool and not planning of reconnecting again.
connectionPool.shutDown()