Re: close pooled conection-by value or by reference
If you want to make sure the connection is closed/release in any case, put the close() call inside a finally clause: Connection connection = DatabaseManager.getConnection(); try { //jdbc work. } finally { DatabaseManager.closeConnection(connection); } This way, whatever
Howto to turn Tomcat 4.1.x DBCP logging on ?
Hello, I'm running Tomcat 4.1.x and would like to get some log info about DBCP. Does someone know how I could turn DBCP's logging on ? Thx /bertrand