protected UserTransaction createUTTransaction() throws NamingException { return new UTTransaction( getUserTransaction() ); }
@Override public void registerSynchronization(Synchronization sync) { getSynchronizations().registerSynchronization(sync); }
UTTransaction(javax.transaction.UserTransaction delegate, Synchronizations sync) { this.setSynchronizations(sync); this.delegate = delegate; if (delegate == null) { throw new IllegalArgumentException("null UserTransaction"); } }
@Override public void registerSynchronization(Synchronization sync) { getSynchronizations().registerSynchronization(sync); }
protected SeamTransaction createUTTransaction() throws NamingException { return new UTTransaction(getUserTransaction(), synchronizations); }
public void rollback() throws IllegalStateException, SecurityException, SystemException { log.debug("rolling back JTA transaction"); try { delegate.rollback(); } finally { getSynchronizations().afterTransactionRollback(); } }
public void rollback() throws IllegalStateException, SecurityException, SystemException { log.debug("rolling back JTA transaction"); try { delegate.rollback(); } finally { getSynchronizations().afterTransactionCompletion(false); } }
public void begin() throws NotSupportedException, SystemException { log.debug("beginning JTA transaction"); delegate.begin(); getSynchronizations().afterTransactionBegin(); }
public void begin() throws NotSupportedException, SystemException { log.debug("beginning JTA transaction"); delegate.begin(); getSynchronizations().afterTransactionBegin(); }
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.afterTransactionCompletion(success); } }
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); } }