public void begin() throws NotSupportedException, SystemException { begin(CreationListener.CreatedBy.TRANSACTION_MANAGER); }
public void begin() throws NotSupportedException, SystemException { checkTransactionStateAvailability(); ContextTransactionManager.getInstance().begin(CreationListener.CreatedBy.USER_TRANSACTION); }
List<TimerImpl> persistedTimers; try { transactionManager.begin(); persistedTimers = timerPersistence.getValue().loadActiveTimers(timedObjectId, this); transactionManager.commit();
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); } } } }
PreparedStatement statement = null; try { tm.begin(); try { connection = dataSource.getConnection();
protected Object invokeInOurTx(InterceptorContext invocation, final EJBComponent component) throws Exception { final ContextTransactionManager tm = ContextTransactionManager.getInstance(); tm.begin(); final AbstractTransaction tx = tm.getTransaction(); final Object result;
if (newTimer || timer.isCanceled()) { if( clientTX == null ){ transactionManager.begin();
public void begin() throws NotSupportedException, SystemException { begin(CreationListener.CreatedBy.TRANSACTION_MANAGER); }
public void begin() throws NotSupportedException, SystemException { begin(CreationListener.CreatedBy.TRANSACTION_MANAGER); }
public void begin() throws NotSupportedException, SystemException { checkTransactionStateAvailability(); ContextTransactionManager.getInstance().begin(CreationListener.CreatedBy.USER_TRANSACTION); }
public void begin() throws NotSupportedException, SystemException { checkTransactionStateAvailability(); ContextTransactionManager.getInstance().begin(CreationListener.CreatedBy.USER_TRANSACTION); }