Java – what is the difference between the non xadatasource with JTA = “true” and xadatasource?
•
Java
I'm confused that we can allow JTA transactions using non - XA data sources So what's the difference between Xa and non XA data sources? Why should we use XA data sources?
Solution
Generally speaking, XA transactions are "global transactions" that may span multiple resources Non - XA transactions always involve only one resource
Xa transaction involves a coordination transaction manager, which contains one or more databases (or other resources, such as JMS), all of which involve a single global transaction Non XA transactions do not have a transaction coordinator, and a single resource is performing all its transactional work (sometimes referred to as a local transaction)
JTA = "true", the transaction is submitted automatically
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码