Spring JTA TransactionManager config: Supporting both Tomcat and JBoss

后端 未结 5 1025
广开言路
广开言路 2021-02-06 01:19

I have a web application using JPA and JTA with Spring. I would like to support both JBoss and Tomcat. When running on JBoss, I\'d like to use JBoss\' own TransactionManager, an

5条回答
  •  粉色の甜心
    2021-02-06 01:55

    The approach will look for a transaction manager in several default locations listed here. If your JBoss transaction manager is not in one of those locations, I suggest you move it, if possible, or move it in Tomcat so that both containers have their TM in the same JNDI location.

提交回复
热议问题