Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以解释 XA 数据源的使用以及 XA 数据源中事务管理的工作原理吗?XA datasouce 和 2 Phase commit 有什么关系?
两阶段提交和 XA 或多或少是同义词。即使该事务涉及多个事务系统,例如,它们也确保保留事务的 ACIDity
为了能够参与这样的全局事务,每个数据源都必须与 XA 事务管理器协作,因此必须实现 XA 协议。如果您需要两阶段提交,那么您需要一个 XA 数据源。