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
- How to create database view with Oracle SQL Developer Data Modeler
- How to add/remove row in datatable
- How to easily embed a Google Map in your website
- Velocity without template(.vm) file
- How to create relational data model with Oracle SQL Developer Data Modeler
- How to edit Liferay email notification templates
- How to add Sequence Generator to a table in Oracle SQL Developer Data Modeler
- How to backup Oracle SQL Developer Data Modeler project
- How to export data model to DDL with Oracle SQL Developer Data Modeler
- How to switch EJB client to local or remote interface without changing code
No comments:
Post a Comment