JTA和RESOURCE_LOCAL的区别

转自:http://blog.chinaunix.net/uid-11593717-id-2866357.html

另外JTA和RESOURCE_LOCAL的区别就在于一个是声明性事务管理,由容器来打理你添加了 @TransactionAttribut(xxxx)注释的EJB method过程,而另一个需要手动从EM中得到一个事务句柄并使用begin(),commit()之类编程性事务管理方式

猜你喜欢

转载自a25765339.iteye.com/blog/2089167
今日推荐