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 import Database connections into Oracle SQL Developer from XML
- Easy way to add AJAX action to HTML element with Richfaces and Primefaces
- How to create database view with Oracle SQL Developer Data Modeler
- How to set max date and min date in <p:calendar />
- How to configure memory for Oracle SQL Developer
- Import/Export MySQL database with SQLyog
- How to copy folder with Maven
- How to pass parameters with p:remoteCommand
- How to order child collection in JPA
- How to disable row selection in PrimeFaces datatable
No comments:
Post a Comment