Atomikos Transaction
Background
Apache ShardingSphere provides XA transactions, and the default XA transaction manager is Atomikos.
Procedure
- Configure the transaction type
- Configure Atomikos
Sample
Configure the transaction type
Yaml:
transaction:
defaultType: XA
providerType: Atomikos
Configure Atomikos
Atomikos configuration items can be customized by adding jta.properties
to the project’s classpath.
See Atomikos’s official documentation for more details.
Data Recovery
xa_tx.log
is generated in the logs
directory of the project. This is the log required for recovering XA crash. Do not delete it.
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .