Java Transaction API

J2EE implements the DTP model using JTA, in which the transaction manager is represented by javax.transaction.UserTransaction. JTA enforces the transaction ACID properties between multiple resource managers. The JTA transaction manager is implemented by the EJB container vendor (application server vendor), and registered in the JNDI namespace. A client creates a distributed transaction context by looking up the JNDI namespace for the named resource UserTransaction, which acts as a factory of distributed transactions. The UserTransaction interface abstracts all the classes and interfaces of managing a J2EE distributed transactions. The application and component developer needs only to use the begin(), commit(), and rollback() ...

Get Sams Teach Yourself EJB in 21 Days now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.