Explain the advantages of JTA over JTS

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.
What is a resource leak?
Usually all operating systems have limitations for using the number of file handles, sockets etc., which can be open...
What is Bootstrap loader program?
Bootstrapping is a technique which activates more complex / complicated system of programs...
Can you run the java program without main method? - Java
A java applet application, a web application can run without main method. A Java program can run without using ‘ public static void main(String args[]) ‘ method by using a static block...
Post your comment