@Override public void commit() { if ( !isActive( true ) ) { // allow MARKED_ROLLBACK to propagate through to transactionDriverControl // the boolean passed to isActive indicates whether MARKED_ROLLBACK should be // considered active // // essentially here we have a transaction that is not active and // has not been marked for rollback only throw new IllegalStateException( "Transaction not successfully started" ); } LOG.debug( "committing" ); try { internalGetTransactionDriverControl().commit(); } catch (RuntimeException e) { throw exceptionConverter.convertCommitException( e ); } }
@Override public void commit() { if ( !isActive( true ) ) { // allow MARKED_ROLLBACK to propagate through to transactionDriverControl // the boolean passed to isActive indicates whether MARKED_ROLLBACK should be // considered active // // essentially here we have a transaction that is not active and // has not been marked for rollback only throw new IllegalStateException( "Transaction not successfully started" ); } LOG.debug( "committing" ); try { internalGetTransactionDriverControl().commit(); } catch (RuntimeException e) { throw exceptionConverter.convertCommitException( e ); } }