Advantages of JTA over JTS:- JTA (JAVA TRANSACTION API) is more flexible and simple to use by the programmer.
The JTA API is divided into two parts
1. High-level X/Open Call Level interface (CLI)
2. Low-level XA Call Level interface (CLI)
- As a programmer using JTA he has to concentrate on high-level x/open interface .
- The low-level XA operations are taken care of by the server which is giving the implementation to JTA API.
- The user will never perform XA operations directly.
- This makes the user simpler to manipulate with transactions.
- JTS is implementation of JTA.
- The J2EE SDK implements the transaction manager with JTS. But your code doesn't call the JTS methods directly. Instead, it invokes the JTA methods, which then call the lower-level JTS routines. Therefore, JTA is a high level transaction interface that your application uses to control transaction and JTS is a low level transaction interface while EJB uses behind the scene (client code doesn't directly interact with JTS). It is based on object transaction service (OTS) which is part of CORBA.