public void stop() { ServerVMClientUserTransaction.getSingleton().unregisterTxStartedListener(cachedConnectionManager); EnterpriseContext.setUserTransactionStartedListener(null); } }
public void start() { TransactionSynchronizer.setTransactionManager(transactionManager); ServerVMClientUserTransaction.getSingleton().registerTxStartedListener(cachedConnectionManager); EnterpriseContext.setUserTransactionStartedListener(cachedConnectionManager); }