Can not create EntityManager factory bc JTA tx manager requiered

非 Y 不嫁゛ 提交于 2019-12-02 11:49:58

Here is an non ideal answer which I will use in the meanwhile.

specify a non jta datasource:

<non-jta-data-source>java:/jdbc/thor_ds</non-jta-data-source>

change transaction type from JTA to RESOURCE_LOCAL

<persistence-unit name="AvengersPU" transaction-type="RESOURCE_LOCAL">

Here is a discussion on the subject:

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