public static TransactionManager transactionManager () { return TransactionManager.getTransactionManager() ; } }
public static TransactionManager transactionManager () { return TransactionManager.getTransactionManager() ; } }
public void suspend() throws SystemException { _txcontext = TransactionManager.getTransactionManager().suspend(); }
public void resume() throws UnknownTransactionException, SystemException { if (!_txcontext.equals(TransactionManager.getTransactionManager().currentTransaction())) { TransactionManager.getTransactionManager().resume(_txcontext); _tx = UserTransaction.getUserTransaction(); } }
if (cct != null) { TxContext ctx = new TxContextImple(cct); TransactionManager.getTransactionManager().resume(ctx); _subordinate = true; begin(_tx); } catch (WrongStateException wse) { TransactionManager.getTransactionManager().suspend(); // previous transaction will be resumed by another instance _tx = UserTransaction.getUserTransaction(); _txcontext = TransactionManager.getTransactionManager().currentTransaction(); _active = true;
private final void enlistCompletionParticipants () throws WrongStateException, UnknownTransactionException, SystemException { TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager(); final TxContextImple currentTx = (TxContextImple) tm.currentTransaction(); if (currentTx == null) throw new UnknownTransactionException(); final String id = currentTx.identifier(); W3CEndpointReference completionCoordinator = null; try { completionCoordinator = tm.registerParticipant(null, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION_RPC); } catch (InvalidProtocolException ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } catch (InvalidStateException ex) { throw new WrongStateException(); } catch (CannotRegisterException ex) { // cause could actually be no activity or already registered throw new UnknownTransactionException(); } _completionCoordinators.put(id, completionCoordinator); }
private final void enlistCompletionParticipants () throws WrongStateException, UnknownTransactionException, SystemException { TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager(); final TxContextImple currentTx = (TxContextImple) tm.currentTransaction(); if (currentTx == null) throw new UnknownTransactionException(); final String id = currentTx.identifier(); W3CEndpointReference completionCoordinator = null; try { completionCoordinator = tm.registerParticipant(null, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION_RPC); } catch (InvalidProtocolException ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } catch (InvalidStateException ex) { throw new WrongStateException(); } catch (CannotRegisterException ex) { // cause could actually be no activity or already registered throw new UnknownTransactionException(); } _completionCoordinators.put(id, completionCoordinator); }
private final void enlistCompletionParticipants () throws WrongStateException, UnknownTransactionException, SystemException { TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager(); final TxContextImple currentTx = (TxContextImple) tm.currentTransaction(); if (currentTx == null) throw new UnknownTransactionException(); final String id = currentTx.identifier(); W3CEndpointReference completionCoordinator = null; try { completionCoordinator = tm.registerParticipant(null, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION_RPC); } catch (InvalidProtocolException ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } catch (InvalidStateException ex) { throw new WrongStateException(); } catch (CannotRegisterException ex) { // cause could actually be no activity or already registered throw new UnknownTransactionException(); } _completionCoordinators.put(id, completionCoordinator); }
SystemException TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager();
SystemException TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager();
SystemException TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager();