码迷,mamicode.com
首页 > 其他好文 > 详细

REAOURCE_LOCAL和JTA

时间:2015-03-10 16:47:57      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:

环境:

persistence.xml配置文件中

<persistence-unit name="managementPersistenceUnit" 

transaction-type="REAOURCE_LOCAL"

......>

问题:

Caused by: java.lang.RuntimeException: Error occurred during deployment: Exception while preparing the app : The persistence-context-ref-name [com.neusoft.saca.snapmgr.management.service.impl.CacheServiceImpl/em] in module [snap-main] resolves to a persistence unit called [managementPersistenceUnit] which is of type RESOURCE_LOCAL. Only persistence units with transaction type JTA can be used as a container managed entity manager.
 
 

REAOURCE_LOCAL和JTA

标签:

原文地址:http://www.cnblogs.com/SeaChina/p/4326121.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!