gpt4 book ai didi

java - 带有 jta ="true"的 nonXADatasource 和 XADataSource 有什么区别?

转载 作者:太空狗 更新时间:2023-10-29 22:37:10 28 4
gpt4 key购买 nike

我对我们可以允许将 JTA 事务与非 XA 数据源一起使用这一事实感到困惑。 Link to the documentation .那么 XA/非 XA 数据源之间有什么区别?我们为什么要使用 XA 数据源?

最佳答案

An XA transaction, in the most general terms, is a "global transaction" that may span multiple resources. A non-XA transaction always involves just one resource.

An XA transaction involves a coordinating transaction manager, with one or more databases (or other resources, like JMS) all involved in a single global transaction. Non-XA transactions have no transaction coordinator, and a single resource is doing all its transaction work itself (this is sometimes called local transactions).

注意:以上解释来自:theserverside (迈克·斯 PIL )

jta="true",事务自动提交。

关于java - 带有 jta ="true"的 nonXADatasource 和 XADataSource 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27781024/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com