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
This figure shows the start of a gateway commit phase. The coordinator sends a commit message to the gateway participant. The gateway participant commits the work and returns the message "committed." The coordinator receives the gateway committed message.

If the gateway fails to commit the transaction, the coordinator rolls back the entire transaction, as the previous figure illustrates.

Copyright© 2020 HCL Technologies Limited