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: {code} @Override protected void afterCompletion() { afterTransaction();
resetConnection( initiallyAutoCommit ); initiallyAutoCommit = false; } {code} and {code} @Override public void afterTransaction ( ) { super.afterTransaction();
if ( connectionHandlingMode.getReleaseMode() != ConnectionReleaseMode.ON_CLOSE ) { // NOTE : we check for !ON_CLOSE here (rather than AFTER_TRANSACTION) to also catch AFTER_STATEMENT cases // that were circumvented due to held resources log.debug( "Initiating JDBC connection release from afterTransaction" ); releaseConnection(); } } {code}
( x) Connection is already released in afterTransaction() and then resetConnection() is called. |
|