NamingException: jta.UserTransaction

巧了我就是萌 提交于 2019-12-06 04:33:18

Porting an application from a full-blown Java EE application server to Tomcat (web application server) requires some extra steps.

All Java EE AS come with a JTA transaction manager and their transaction engine manages transaction binding and transaction resolving, like the UserTransaction JNDI context.

I recommend you go through the following article. You can use Bitronix or Atomikos, and you need to set both the UserTransaction and the TransactionSyncronizationRegistry in Tomcat context.xml.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!