public void suspend() throws SystemException { _txcontext = BusinessActivityManager.getBusinessActivityManager().suspend(); }
/** * 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(_uba); } catch (WrongStateException wse) { BusinessActivityManager.getBusinessActivityManager().suspend(); // previous transaction will be resumed by another instance _uba = UserBusinessActivity.getUserBusinessActivity();