public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { checkTransactionStateAvailability(); ContextTransactionManager.getInstance().commit(); }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); final RemoteTransaction remoteTransaction = getMatchingTransaction(); if (remoteTransaction == null) { throw Log.log.invalidTxnState(); } else { transactionManager.commit(); } }
transactionManager.begin(); persistedTimers = timerPersistence.getValue().loadActiveTimers(timedObjectId, this); transactionManager.commit(); } catch (Exception e){ try {
void persistTimer() { final ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); try { transactionManager.begin(); timerPersistence.getValue().persistTimer(timer); transactionManager.commit(); } catch (Exception e) { try { transactionManager.rollback(); } catch (Exception ee) { // omit; } EJB3_TIMER_LOGGER.exceptionPersistTimerState(timer, e); long nextExpirationDelay; if (nextExpirationPristine > 0 && timer.timerState != TimerState.RETRY_TIMEOUT && (nextExpirationDelay = nextExpirationPristine - System.currentTimeMillis()) > delta) { if (delta == 0L) { delta = nextExpirationDelay / (1L + MAX_RETRY.longValue()); } timerInjectedValue .getValue() .schedule(new TaskPostPersist(timer, delta, nextExpirationPristine), delta); } else { EJB3_TIMER_LOGGER.exceptionPersistPostTimerState(timer, e); } } } }
tm.commit(); return affected == 1; } catch (SQLException | SystemException | SecurityException | IllegalStateException | RollbackException | HeuristicMixedException | HeuristicRollbackException e) {
if( newTimer ) timerPersistence.getValue().addTimer(timer); else timerPersistence.getValue().persistTimer(timer); if(clientTX == null) transactionManager.commit(); } catch (Exception e){ if(clientTX == null) {
tm.commit(); } else if (txStatus == Status.STATUS_MARKED_ROLLBACK) { tm.rollback();
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { checkTransactionStateAvailability(); ContextTransactionManager.getInstance().commit(); }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { checkTransactionStateAvailability(); ContextTransactionManager.getInstance().commit(); }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); final RemoteTransaction remoteTransaction = getMatchingTransaction(); if (remoteTransaction == null) { throw Log.log.invalidTxnState(); } else { transactionManager.commit(); } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); final RemoteTransaction remoteTransaction = getMatchingTransaction(); if (remoteTransaction == null) { throw Log.log.invalidTxnState(); } else { transactionManager.commit(); } }