本文介绍了对于UserTransactionManager类型,方法transactionManager()未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 private ContainerTransactionManager()抛出SystemException { transactionManager = com.arjuna.ats.jta.TransactionManager.transactionManager( ); transactionManager.setTransactionTimeout( 60000 ); } 此代码已更改为 private ContainerTransactionManager()抛出SystemException { transactionManager = com.atomikos.icatch.jta.UserTransactionManager.transactionManager(); transactionManager.setTransactionTimeout( 60000 ); 所以它在 transactionManager()下显示错误; 为什么显示错误?我想我想念一些jar files.can任何人请建议我实现atomikos jta.which必需的jar文件在atomikos中对应于jbossjts和jbossts-common jar文件的jar文件。 请帮助。解决方案 我不认为atomikos有一个静态方法来获取事务管理器。请尝试新建它; 私人 ContainerTransactionManager() throws SystemException { transactionManager = new com.atomikos.icatch.jta.UserTransactionManager(); transactionManager.setTransactionTimeout( 60000 ); } 希望这会有所帮助, Fredrik private ContainerTransactionManager() throws SystemException { transactionManager = com.arjuna.ats.jta.TransactionManager.transactionManager(); transactionManager.setTransactionTimeout(60000) ; }This code was changed toprivate ContainerTransactionManager() throws SystemException { transactionManager = com.atomikos.icatch.jta.UserTransactionManager.transactionManager(); transactionManager.setTransactionTimeout(60000) ;so it is showing error under transactionManager();Why it is showing so?I think i miss some jar files.can anyone please suggest me the necessary jar files for implementing atomikos jta.which are the jar files in atomikos corresponding to jbossjts and jbossts-common jar files.Please help. 解决方案 I don't think the atomikos has a static method for getting the transaction manager. Try just newing it up instead;private ContainerTransactionManager() throws SystemException { transactionManager = new com.atomikos.icatch.jta.UserTransactionManager(); transactionManager.setTransactionTimeout(60000) ;}Hope this helps,Fredrik 这篇关于对于UserTransactionManager类型,方法transactionManager()未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-22 21:36