Websphere到Jboss的迁移 [英] Websphere to Jboss migration
问题描述
我需要将我的一个应用程序从Websphere(6.1)迁移到JBoss(EAP 5.1)。应用程序现在使用以下代码获取WebsphereTransactionManager对象并执行挂起和恢复操作
I need to migrate one of my application from Websphere(6.1) to JBoss (EAP 5.1) . Application is now using the following code to get the WebsphereTransactionManager object and perform suspend and resume operations
com.ibm.ws.Transaction.WebSphereTransactionManager txMgr = com.ibm.ws. Transaction.TransactionManagerFactory.getTransactionManager();
javax.transaction.Transaction thisTx = null;
com.ibm.ws.Transaction.WebSphereTransactionManager txMgr = com.ibm.ws.Transaction.TransactionManagerFactory.getTransactionManager(); javax.transaction.Transaction thisTx = null;
thisTx = txMgr.suspend();
thisTx = txMgr.suspend();
//执行非交易操作的代码
// Code to do non transactional operations
txMgr.resume(thisTx);
txMgr.resume(thisTx);
我怎么能得到Jboss中的TransactionManager对象?请问任何示例代码?
How could I get a TransactionManager Object in Jboss? Any sample code please?
推荐答案
您可以利用JBoss Windup( http://windup.jboss.org )可以帮助您解决此问题和其他迁移问题。只需在源代码或存档上运行Windup。查看指南部分下的视频以获取更多帮助。
You can leverage JBoss Windup (http://windup.jboss.org) to help you with this and other migration questions. Just run Windup on your source or archive. Check out the videos under Guides section for more help.
这篇关于Websphere到Jboss的迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!