tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Tomcat connection pool - needs to reset autocommit
Date Thu, 13 Nov 2008 15:03:11 GMT
On connection.close() - the pool should ensure that autocommit is reset 
correctly. Example test case:

// assume autocommit for JDBC verndor is true
Connection con = datasource.getConnection();
System.out.println("con.autoconnect=" + con.getAutoCommit()\n";
// above line should say true
con.setAutoCommit(false);
con.close();

con = datasource.getConnection();
System.out.println("con.autoconnect=" + con.getAutoCommit()\n";
// above line will return false instead of true
con.close();


-Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message