Re: close pooled conection-by value or by reference

2005-07-24 Thread Bertrand Renuart
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 ?

2005-07-06 Thread Bertrand Renuart
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