Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教下调用逻辑 #29

Closed
wpf5788 opened this issue Aug 24, 2016 · 4 comments
Closed

请教下调用逻辑 #29

wpf5788 opened this issue Aug 24, 2016 · 4 comments

Comments

@wpf5788
Copy link

wpf5788 commented Aug 24, 2016

请教下, order中调用 capitalTradeOrderServiceImpl.record后,如果record try时失败,order怎么会知道record和try失败了呢 看了源码不太理解这个是怎么处理的,进入这些方法的时候aop处理了transcation表 这个倒是清楚的

@wpf5788
Copy link
Author

wpf5788 commented Aug 24, 2016

大虾 在不在 或者其它人也行

@wpf5788
Copy link
Author

wpf5788 commented Aug 25, 2016

理解了 如果远程调用失败会报错,报错由order捕获到,触发所有回滚

@liuyb02
Copy link

liuyb02 commented Aug 29, 2016

调用方做协调者,成功时触发所有参与者提交,失败时触发回滚

@kwengelie
Copy link

@liuyb02 看源代码没看出来调研方是如何协调的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants