In JBoss/WildFly should I enable JTA on data source to use with JPA?

后端 未结 3 927
悲哀的现实
悲哀的现实 2021-01-06 07:05

In JBoss/WildFly, when configuring a data source, there is a JTA option, which is disabled by default:



        
3条回答
  •  误落风尘
    2021-01-06 07:53

    I think you should use jta. And if you set jta to false in the container configuration file, jta will be disabled for JPA, so the transaction-type for JPA will be "RESOURCE_LOCAL", which has some nasty side effect. By the way, jta is true in the container configuration file by default.

提交回复
热议问题