Thursday, May 24, 2018
Multiple phases commit
psedocode
client invokes System A
System A performs process
if success
System A commits
System A invokes System B
System B performs process
if success
System B commits
System B invokes System N..
System N.. performs process
if success
System N.. commits
else
System N.. rollback
System N.. return false
else
System B rollback
System B return false
else
System A rollback
System A returns fail
to simplified the above logic,
1. process and commit own transaction.
2. invoke external system/process
3.1 if success, return true
3.2 if failed, return false, manual rollback the transaction.
Done!!
Subscribe to:
Post Comments (Atom)
Popular Posts
- Velocity without template(.vm) file
- How to edit Liferay email notification templates
- How to switch EJB client to local or remote interface without changing code
- Easy way to add AJAX action to HTML element with Richfaces and Primefaces
- How to display dynamic PDF document with <p:media /> component
- How to disable row selection in PrimeFaces datatable
- How to deploy jdbc driver as a module in JBoss AS7
- Group Chatting with SparkWeb and OpenFire
- Primefaces fileDownload in Liferay
- How to get Company Id in Liferay
No comments:
Post a Comment