Gateway commit phase
If all participants successfully return a message indicating
that they are prepared to commit, the coordinator sends a commit message
to the gateway. The gateway in turn sends a response to the coordinator
indicating whether the gateway committed its piece of the transaction.
If the gateway commits the transaction, the coordinator decides to
commit the entire transaction. The following figure illustrates this
process.
Figure 1. Heterogeneous
commit phase that results in a committed transaction
If the gateway fails to commit the transaction, the coordinator rolls back the entire transaction, as the previous figure illustrates.