public TransactionImple createSubordinate () throws javax.transaction.NotSupportedException, javax.transaction.SystemException { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("BaseTransaction.createSubordinate"); } try { checkTransactionState(); } catch (IllegalStateException e1) { NotSupportedException notSupportedException = new NotSupportedException(); notSupportedException.initCause(e1); throw notSupportedException; } catch (Exception e2) { javax.transaction.SystemException systemException = new javax.transaction.SystemException(e2.toString()); systemException.initCause(e2); throw systemException; } Integer value = _timeouts.get(); int v = 0; // if not set then assume 0. What else can we do? if (value != null) { v = value.intValue(); } // TODO set default timeout return new com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.TransactionImple(v); }
public TransactionImple createSubordinate () throws javax.transaction.NotSupportedException, javax.transaction.SystemException { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("BaseTransaction.createSubordinate"); } try { checkTransactionState(); } catch (IllegalStateException e1) { NotSupportedException notSupportedException = new NotSupportedException(); notSupportedException.initCause(e1); throw notSupportedException; } catch (Exception e2) { javax.transaction.SystemException systemException = new javax.transaction.SystemException(e2.toString()); systemException.initCause(e2); throw systemException; } Integer value = _timeouts.get(); int v = 0; // if not set then assume 0. What else can we do? if (value != null) { v = value.intValue(); } // TODO set default timeout return new com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.TransactionImple(v); }
public TransactionImple createSubordinate () throws javax.transaction.NotSupportedException, javax.transaction.SystemException { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("BaseTransaction.createSubordinate"); } try { checkTransactionState(); } catch (IllegalStateException e1) { NotSupportedException notSupportedException = new NotSupportedException(); notSupportedException.initCause(e1); throw notSupportedException; } catch (Exception e2) { javax.transaction.SystemException systemException = new javax.transaction.SystemException(e2.toString()); systemException.initCause(e2); throw systemException; } Integer value = _timeouts.get(); int v = 0; // if not set then assume 0. What else can we do? if (value != null) { v = value.intValue(); } // TODO set default timeout return new com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.TransactionImple(v); }
public TransactionImple createSubordinate () throws javax.transaction.NotSupportedException, javax.transaction.SystemException { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("BaseTransaction.createSubordinate"); } try { checkTransactionState(); } catch (IllegalStateException e1) { NotSupportedException notSupportedException = new NotSupportedException(); notSupportedException.initCause(e1); throw notSupportedException; } catch (Exception e2) { javax.transaction.SystemException systemException = new javax.transaction.SystemException(e2.toString()); systemException.initCause(e2); throw systemException; } Integer value = _timeouts.get(); int v = 0; // if not set then assume 0. What else can we do? if (value != null) { v = value.intValue(); } // TODO set default timeout return new com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.TransactionImple(v); }
public TransactionImple createSubordinate () throws javax.transaction.NotSupportedException, javax.transaction.SystemException { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("BaseTransaction.createSubordinate"); } try { checkTransactionState(); } catch (IllegalStateException e1) { NotSupportedException notSupportedException = new NotSupportedException(); notSupportedException.initCause(e1); throw notSupportedException; } catch (Exception e2) { javax.transaction.SystemException systemException = new javax.transaction.SystemException(e2.toString()); systemException.initCause(e2); throw systemException; } Integer value = _timeouts.get(); int v = 0; // if not set then assume 0. What else can we do? if (value != null) { v = value.intValue(); } // TODO set default timeout return new com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.TransactionImple(v); }
public TransactionImple createSubordinate () throws javax.transaction.NotSupportedException, javax.transaction.SystemException { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("BaseTransaction.createSubordinate"); } try { checkTransactionState(); } catch (IllegalStateException e1) { NotSupportedException notSupportedException = new NotSupportedException(); notSupportedException.initCause(e1); throw notSupportedException; } catch (Exception e2) { javax.transaction.SystemException systemException = new javax.transaction.SystemException(e2.toString()); systemException.initCause(e2); throw systemException; } Integer value = _timeouts.get(); int v = 0; // if not set then assume 0. What else can we do? if (value != null) { v = value.intValue(); } // TODO set default timeout return new com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.TransactionImple(v); }
notSupportedException.initCause(e1); throw notSupportedException;
notSupportedException.initCause(e1); throw notSupportedException;
notSupportedException.initCause(e1); throw notSupportedException;
notSupportedException.initCause(e1); throw notSupportedException;
notSupportedException.initCause(e1); throw notSupportedException;
notSupportedException.initCause(e1); throw notSupportedException;
notSupportedException.initCause(e1); throw notSupportedException;
/** * Delegate nonTransactional work to the appropriate managed runtime. If no * managed runtime is found then delegate {@link AbstractManagedRuntime}. */ public void doNonTransactionalWork(Runnable runnable) throws NotSupportedException { // Obtain a transaction manager to initialize the runtime. try { getTransactionManager(); } catch (Exception e) { NotSupportedException nse = new NotSupportedException(_loc .get("tm-unavailable", _runtime).getMessage()); nse.initCause(e); throw nse; } _runtime.doNonTransactionalWork(runnable); } }
/** * Delegate nonTransactional work to the appropriate managed runtime. If no * managed runtime is found then delegate {@link AbstractManagedRuntime}. */ public void doNonTransactionalWork(Runnable runnable) throws NotSupportedException { // Obtain a transaction manager to initialize the runtime. try { getTransactionManager(); } catch (Exception e) { NotSupportedException nse = new NotSupportedException(_loc .get("tm-unavailable", _runtime).getMessage()); nse.initCause(e); throw nse; } _runtime.doNonTransactionalWork(runnable); } }
/** * Delegate nonTransactional work to the appropriate managed runtime. If no * managed runtime is found then delegate {@link AbstractManagedRuntime}. */ public void doNonTransactionalWork(Runnable runnable) throws NotSupportedException { // Obtain a transaction manager to initialize the runtime. try { getTransactionManager(); } catch (Exception e) { NotSupportedException nse = new NotSupportedException(_loc .get("tm-unavailable", _runtime).getMessage()); nse.initCause(e); throw nse; } _runtime.doNonTransactionalWork(runnable); } }
/** * Delegate nonTransactional work to the appropriate managed runtime. If no * managed runtime is found then delegate {@link AbstractManagedRuntime}. */ public void doNonTransactionalWork(Runnable runnable) throws NotSupportedException { // Obtain a transaction manager to initialize the runtime. try { getTransactionManager(); } catch (Exception e) { NotSupportedException nse = new NotSupportedException(_loc .get("tm-unavailable", _runtime).getMessage()); nse.initCause(e); throw nse; } _runtime.doNonTransactionalWork(runnable); } }
@Override public void checkTMState() throws NotSupportedException { if (tc.isEntryEnabled()) Tr.entry(tc, "checkTMState"); if (_state != TMService.TMStates.ACTIVE) { if (_state == TMService.TMStates.RECOVERING) { // Check that the initial phase of recovery is complete } else if (_state == TMService.TMStates.INACTIVE) { try { TMHelper.start(); } catch (Exception e) { final NotSupportedException nse = new NotSupportedException(); nse.initCause(e); throw nse; } } else if (_state == TMService.TMStates.STOPPING) { throw new NotSupportedException("JTM is stopping"); } else if (_state == TMService.TMStates.STOPPED) { throw new NotSupportedException("JTM is stopped"); } } if (tc.isEntryEnabled()) Tr.exit(tc, "checkTMState"); }