guoliang3 opened a new issue, #7253:
URL: https://github.com/apache/incubator-seata/issues/7253

   //应用A的a2方法
   @GloableTransactional
   public void a2(){
       saveDb();
       //rpc访问b2的prepare方法
       b2Prepare();
       //假设抛出异常
       throw exception;
   }
   
   @TwoPhaseBusinessAction(name = "TccTestBean", commitMethod = "b2Commit", 
rollbackMethod = "b2Cancel")
   public void b2Prepare(){
       //rpc访问B的b2接口
       call B.b2();
   }
   
   public void b2Commit(){
       //不关键忽略
   }
   
   
   public void b2Cancel(){
       //rpc访问B的rollbackB2接口
       call B.rollbackB2();
   }
   
   //应用B的b2接口
   public void b2(){
      //模拟一些自己的db处理
       saveDb();
   }
   
   public void rollbackB2(){
      //模拟一些自己的db处理
      cleanDb();
   }
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to