top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is JTA and JTS in Java and how we can differenciate it

+6 votes
217 views
What is JTA and JTS in Java and how we can differenciate it
posted Jan 15, 2014 by Neeraj Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

JTA is the abbreviation for the Java Transaction API.
JTS is the abbreviation for the Jave Transaction Service.
JTA provides a standard interface and allows you to demarcate transactions in a manner that is independent of the transaction manager implementation.
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 and ejb uses behind the scenes (client code doesn’t directly interact with JTS. It is based on object transaction service(OTS) which is part of CORBA.

In the Java transaction model, the Java application components can conduct transactional operations on JTA compliant resources via the JTS. The JTS acts as a layer over the OTS. The applications can therefore initiate global transactions to include other OTS transaction managers, or participate in global transactions initiated by other OTS compliant transaction managers.

answer Feb 8, 2014 by Amit Kumar Pandey
...