public void begin(Xid xid, long txTimeoutMillis) throws XAException, InvalidTransactionException, SystemException, ImportedTransactionActiveException { Transaction importedTransaction; synchronized (importedTransactions) { importedTransaction = (Transaction) importedTransactions.get(xid); if (importedTransaction == null) { // this does not associate tx with current thread. importedTransaction = importXid(xid, txTimeoutMillis); importedTransactions.put(xid, importedTransaction); } // associate the the imported transaction with the current thread try { resume(importedTransaction); } catch (InvalidTransactionException e) { // this occures if our transaciton is associated with another thread throw (ImportedTransactionActiveException)new ImportedTransactionActiveException(xid).initCause(e); } } }
public void begin(Xid xid, long txTimeoutMillis) throws XAException, InvalidTransactionException, SystemException, ImportedTransactionActiveException { Transaction importedTransaction; synchronized (importedTransactions) { importedTransaction = (Transaction) importedTransactions.get(xid); if (importedTransaction == null) { // this does not associate tx with current thread. importedTransaction = importXid(xid, txTimeoutMillis); importedTransactions.put(xid, importedTransaction); } // associate the the imported transaction with the current thread try { resume(importedTransaction); } catch (InvalidTransactionException e) { // this occures if our transaciton is associated with another thread throw (ImportedTransactionActiveException)new ImportedTransactionActiveException(xid).initCause(e); } } }
public void begin(Xid xid, long txTimeoutMillis) throws XAException, InvalidTransactionException, SystemException, ImportedTransactionActiveException { Transaction importedTransaction; synchronized (importedTransactions) { importedTransaction = (Transaction) importedTransactions.get(xid); if (importedTransaction == null) { // this does not associate tx with current thread. importedTransaction = importXid(xid, txTimeoutMillis); importedTransactions.put(xid, importedTransaction); } // associate the the imported transaction with the current thread try { resume(importedTransaction); } catch (InvalidTransactionException e) { // this occures if our transaciton is associated with another thread throw (ImportedTransactionActiveException)new ImportedTransactionActiveException(xid).initCause(e); } } }
public void begin(Xid xid, long txTimeoutMillis) throws XAException, InvalidTransactionException, SystemException, ImportedTransactionActiveException { Transaction importedTransaction; synchronized (importedTransactions) { importedTransaction = (Transaction) importedTransactions.get(xid); if (importedTransaction == null) { // this does not associate tx with current thread. importedTransaction = importXid(xid, txTimeoutMillis); importedTransactions.put(xid, importedTransaction); } // associate the the imported transaction with the current thread try { resume(importedTransaction); } catch (InvalidTransactionException e) { // this occures if our transaciton is associated with another thread throw (ImportedTransactionActiveException)new ImportedTransactionActiveException(xid).initCause(e); } } }