首页 > 其他 > 详细

REAOURCE_LOCAL和JTA

时间:2015-03-10 16:46:04      阅读:358      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!