I know my implementation isn't the best there is... take a look at this code:
protected void finalize() {
try {
if( con!=null && !con.isClosed() && con.getAutoCommit() ) {
con.close();
}
}
catch(SQLException sqle) {
System.out.println("["+this.getClass().getName()+"] N�o foi poss�vel fechar a
conex�o. "+sqle.toString()+"\n");
// sqle.printStackTrace();
}
}
that's what I use to TRY to close all connections... this code is in my DAO class.
Sometimes I have up to four DAO classes instantiated in a single JSP... I debugged
it... at least one always fails to close giving me this exception: "I/O error: socket
closed"
what does that mean? what socket? And why did all the other connections closed and
this didn't?
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332