| Hello, There is the issue with setting 'autocommit' to already released connection, when DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION is used. See 2 methods in LogicalConnectionManagedImpl:
@Override
protected void afterCompletion() {
afterTransaction();
resetConnection( initiallyAutoCommit );
initiallyAutoCommit = false;
}
and
@Override
public void afterTransaction() {
super.afterTransaction();
if ( connectionHandlingMode.getReleaseMode() != ConnectionReleaseMode.ON_CLOSE ) {
log.debug( "Initiating JDBC connection release from afterTransaction" );
releaseConnection();
}
}
Connection is already released in afterTransaction() and then resetConnection() is called. |