ExceptionUtils.handleThrowable(f);
}
this.preparedLoadSql = null;
+
+ // Commit if autoCommit is false
+ try {
+ if (!dbConnection.getAutoCommit()) {
+ dbConnection.commit();
+ }
+ } catch (SQLException e) {
+ manager.getContainer().getLogger().error(sm.getString(getStoreName() + ".commitSQLException"), e);
+ }
// Close this database connection, and log any errors
try {
JDBCStore.checkConnectionClassNotFoundException=JDBC driver class not found {0}
JDBCStore.wrongDataSource=Cannot open JNDI DataSource [{0}]
JDBCStore.missingDataSourceName=No valid JNDI name was given.
+JDBCStore.commitSQLException=SQLException committing connection before closing
managerBase.createRandom=Created random number generator for session ID generation in {0}ms.
managerBase.createSession.ise=createSession: Too many active sessions
managerBase.sessionTimeout=Invalid session timeout setting {0}
of a Servlet instance always do so in way that correctly instantiates a
Servlet instance. (markt)
</fix>
+ <fix>
+ Committing connection if autoCommit is false.
+ Make sure committed connection is returned to the pool if datasource is
+ enabled. (kfujino)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">