public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { log.debug("committing JTA transaction"); boolean success = false; Synchronizations synchronizations = getSynchronizations(); synchronizations.beforeTransactionCommit(); try { delegate.commit(); success = true; } finally { synchronizations.afterTransactionCommit(success); } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { UserTransaction userTransaction = ejbContext.getUserTransaction(); boolean success = false; Synchronizations synchronizations = getSynchronizations(); synchronizations.beforeTransactionCommit(); try { userTransaction.commit(); success = true; } finally { synchronizations.afterTransactionCommit(success); } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { log.debug("committing JPA resource-local transaction"); assertActive(); javax.persistence.EntityTransaction delegate = getDelegate(); clearEntityManager(); boolean success = false; try { if ( delegate.getRollbackOnly() ) { delegate.rollback(); throw new RollbackException(); } else { getSynchronizations().beforeTransactionCommit(); delegate.commit(); success = true; } } finally { getSynchronizations().afterTransactionCommit(success); } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { log.debug("committing Spring transaction"); assertActive(); boolean success = false; Synchronizations synchronizations = getSynchronizations(); synchronizations.beforeTransactionCommit(); try { getPlatformTransactionManagerRequired().commit(currentTransaction); success = true; } finally { currentTransaction = null; synchronizations.afterTransactionCommit(success); } }