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”);' –