0
我需要將我的一個應用程序從Websphere(6.1)遷移到JBoss(EAP 5.1)。應用程序現在使用以下代碼獲取WebsphereTransactionManager對象並執行暫停和恢復操作。 javax.transaction.Transaction thisTx = null;Websphere to Jboss遷移
thisTx = txMgr.suspend();
//代碼來執行非事務性操作
txMgr.resume(thisTx);
我該如何獲得Jboss中的TransactionManager對象?請提供任何示例代碼?
現在我有了一個選項來獲取我的java代碼中的JBoss TransactionManager。 'TransactionManager transactionManager =(TransactionManager)initialContext.lookup(「java:/ TransactionManager」);' –