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
- Workaround for p:contextMenu in dataTable
- How to get Company Id in Liferay
- How to load file(s) in the same directory
- How to copy folder with Maven
- How to override JSF library in JBoss
- How to copy file(s) with Maven
- How to easily get logged in user in Liferay.
- How to pass date type parameter in a restful service
- Saving and Updating a document with json in MongoDB
- How to exclude all files in resources folder
No comments:
Post a Comment