/** * Disassociate the WS-AT transaction from the current Thread. * Typically used by the client side inbound handler. * * @throws SystemException */ public void stop() throws SystemException { txbridgeLogger.logger.trace("OutboundBridge.stop(BridgeWrapper="+bridgeWrapper+")"); TransactionManagerFactory.transactionManager().suspend(); } }
public void suspend() throws SystemException { _txcontext = TransactionManager.getTransactionManager().suspend(); }
private void bridgeOutgoingTransaction() { try { // disassociate subordinate JTA transaction InboundBridge txInboundBridge = InboundBridgeManager.getInboundBridge(); txInboundBridge.stop(); // disassociate WS-AT transaction final com.arjuna.mw.wst11.TransactionManager wsatManager = TransactionManagerFactory.transactionManager(); if (wsatManager != null) { wsatManager.suspend(); } } catch (final Throwable th) { throw new SwitchYardException(th); } }
private void bridgeOutgoingTransaction() { try { // disassociate subordinate JTA transaction InboundBridge txInboundBridge = InboundBridgeManager.getInboundBridge(); txInboundBridge.stop(); // disassociate WS-AT transaction final com.arjuna.mw.wst11.TransactionManager wsatManager = TransactionManagerFactory.transactionManager(); if (wsatManager != null) { wsatManager.suspend(); } } catch (final Throwable th) { throw new SwitchYardException(th); } }
/** * Suspend the current transaction. */ protected void suspendTransaction() { try { /* * There should either be an Atomic Transaction *or* a Business Activity * associated with the thread. */ final TransactionManager transactionManager = TransactionManagerFactory.transactionManager() ; final BusinessActivityManager businessActivityManager = BusinessActivityManagerFactory.businessActivityManager() ; if (transactionManager != null) { transactionManager.suspend() ; } if (businessActivityManager != null) { businessActivityManager.suspend() ; } } catch (final Throwable th) { wstxLogger.i18NLogger.warn_mw_wst11_service_JaxHC11P_1("com.arjuna.mw.wst11.service.JaxBaseHeaderContextProcessor.suspendTransaction()", th); } }
/** * Suspend the current transaction. */ protected void suspendTransaction() { try { /* * There should either be an Atomic Transaction *or* a Business Activity * associated with the thread. */ final TransactionManager transactionManager = TransactionManagerFactory.transactionManager() ; final BusinessActivityManager businessActivityManager = BusinessActivityManagerFactory.businessActivityManager() ; if (transactionManager != null) { transactionManager.suspend() ; } if (businessActivityManager != null) { businessActivityManager.suspend() ; } } catch (final Throwable th) { wstxLogger.i18NLogger.warn_mw_wst11_service_JaxHC11P_1("com.arjuna.mw.wst11.service.JaxBaseHeaderContextProcessor.suspendTransaction()", th); } }
begin(_tx); } catch (WrongStateException wse) { TransactionManager.getTransactionManager().suspend(); // previous transaction will be resumed by another instance _tx = UserTransaction.getUserTransaction();