Seata XA Mode
Prerequisites
- Databases that support XA transaction.
- Java applications that access database via JDBC.
Overall Mechanism
In the distributed transaction framework defined by Seata, XA mode is a transaction mode that manages branch transactions using the XA protocol mechanism, leveraging transaction resources such as databases and message services with XA protocol support.

-
Execution Phase:
- Rollbackable: Business SQL operations are placed in XA branches, and the XA protocol support ensures rollbackability.
- Persistent: After XA branches are completed, XA prepare is executed, and again, XA protocol support ensures persistence (i.e., no unexpected situations will prevent rollback).
-
Completion Phase:
- Branch Commit: Execute XA branch commit.
- Branch Rollback: Execute XA branch rollback.