funky-eyes commented on issue #7163: URL: https://github.com/apache/incubator-seata/issues/7163#issuecomment-2680267597
我举个简单例子 ``` @GloableTransactional public void demo(){ saveDb(); //rpc访问b2的方法 b2(); //rpc访问c3的prepare方法 c3(); //假设抛出异常 throw exception; } @TwoPhaseBusinessAction(name = "TccTestBean", commitMethod = "c3Commit", rollbackMethod = "c3Cancel") public void c3(){ //rpc访问B的b3接口 call c3 python应用接口(); } ``` 或者: ``` //应用A的a2方法 @GloableTransactional public void a2(){ saveDb(); //rpc访问b2的方法 b2(); //假设抛出异常 throw exception; } //应用B public void b2(){ b2savedb(); c2prepare(); } @Transactional public void b2savedb(){ saveDb(); } @TwoPhaseBusinessAction(name = "TccTestBean", commitMethod = "b2Commit", rollbackMethod = "b2Cancel") public void c3(){ call c3 python应用接口(); } ``` -- 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 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