concept distributed transaction in category java

appears as: distributed trsactions, A distributed trsaction
Spring Integration in Action

This is an excerpt from Manning's book Spring Integration in Action.

Earlier we mentioned a common case where a unit of work spans a JMS message exchange and one or more database operations. In those cases, it might be tempting to move toward a global transaction solution. You could rely on XA-capable resources and a Java Transaction API (JTA) implementation that supports two-phase commit as the transaction manager, but it’s not always necessary to go that far. A distributed transaction in the more general sense means more than one resource is involved. Rather than assuming you need to use XA and two-phase commit along with the extra overhead they bring, you should consider all of the options.