beanww commented on issue #7686:
URL: 
https://github.com/apache/incubator-seata/issues/7686#issuecomment-3388966230

   > 
我建议doSth1和doSth2方法把[@transactional](https://github.com/transactional)和@GlobalTransactional都加上,doSth1调用doSth2使用远程调用。
   
   
是的,我现在看,如果要在一个service使用两个数据源的xa事务的话,把两个数据源的代码拆成两个远程服务,并且都启用@Transactional是最佳实践
   
   我这个问题,主要想讨论一下在一个service里,使用多个数据源的情况


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to