Project

General

Profile

Bug #2077

Updated by Henning Blohm almost 4 years ago

This leads to follow-up failures with Hibernate DDL isolation that sets connections to autocommit=true. 

 In this case, Hibernate (correctly) assumes that it is at liberty to set any connection to autocommit=true because it did not find any transaction to resume. 

 That however leads to an autocommit transaction in the workunit. 

 In addition, any connection that goes back into the pool should have autocommit reset to false. Suggestion: 

 h2. Acceptance Criterias 

 * Enlist connections with the Transaction rather than the workunit, or, say workunit 
 ** A connection with enlist=jta, is only enlisted, if there is a transaction, and it is delisted when that transaction is delisted. 
 * Refuse autocommit=true when in a transaction 
 * Reset autocommit to false when returning a connection to the pool

Back