Topic: 这样的事务可以/如何实现啊?谢谢! |
Print this page |
1.这样的事务可以/如何实现啊?谢谢! | Copy to clipboard |
Posted by: TrueColor Posted on: 2004-08-25 13:46 我现在有几个EJB,各有一些方法供调用,显然,这些方法在EJB容器里是按事务调用的。现在如要调用2个或以上的EJB方法,又想这些方法的调用是按整个事务调用的,即这几个方法要么全成功,要么全失败。这样如何实现呢? 用JTA可以吗? |
2.Re:这样的事务可以/如何实现啊?谢谢! [Re: TrueColor] | Copy to clipboard |
Posted by: ringayumi Posted on: 2004-08-25 14:21 Yes , you can do it!! You have to notice the BMT can propagation to the CMT. But , the CMT can not propagate to the BMT. |
3.Re:这样的事务可以/如何实现啊?谢谢! [Re: TrueColor] | Copy to clipboard |
Posted by: hitaco Posted on: 2004-08-25 22:12 Let session bean as transaction facade, in your case, "Required" transaction attribute is appropriate. |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |