jta和resource_local

1.JTA和RESOURCE_LOCAL的区别就在于一个是声明性事务管理,

由容器来打理你添加了 @TransactionAttribut(xxxx)注释的EJB method过程,

而另一个需要手动从EM中得到一个事务句柄并使用begin(),commit()之类编程性事务管理方式

2.JTA Transaction可以实现同一事务对应不同的数据库,但是它仍然无法实现事务的嵌套。

jta事物的详解见

http://www.jspcn.net/htmlnews/11049371131251752.html

猜你喜欢

转载自yinzhangheng.iteye.com/blog/2241016
JTA
今日推荐