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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.