What is the difference between JTA and a local transaction?
An example that shows when to use JTA and when to use a local transaction would be great.
The Java Transaction API (JTA) is one of the Java Enterprise Edition (Java EE) APIs allowing distributed transactions to be done across multiple XA resources in a Java environment.