using cmt for your ejbs could sovle the problem.

解决方案 »

  1.   

    这个估计不行。
    全局事务也只是跨数据库服务器(JTA)
    不同的应用服务器不是同一个事务。可以根据调用结果判断,如果失败的话就回滚。
      

  2.   

    回复:treeroot(旗鲁特)
    you are saying bmt.What I am saying is cmt. When any transaction is rollbacked or ed as rollback, the container would throw a TransactionRolledbackException or TransactionRolledbackLocalException to the client depending on the interface, if the client is also an ejb in CMT, that transaction would be rolled back by the container also.hope this helps.
      

  3.   

    WAS我就不清楚了,反正我用JBOSS的时候,对于这种跨多个应用服务器的事务我们被称之为分布式事务,JBOSS默认的事务管理器的是不支持的,我们用的是一个开放源代码的项目JOTM,但是性能并不好.
      

  4.   

    用CMT的话就等着头疼吧.JTA可以处理?
      

  5.   

    手工写JTA才是最头疼的,呵呵,是用CMT,我理解错了,惭愧
    JTA事务管理交给EJB容器管理