Types of Transactions

Transactions can be either local (also called standard) or global (also called distributed), depending on the resources and the data sources involved. Most enterprise applications use some sort of transactions. J2EE applications and components are designed with transactions in mind. In the following sections, we will cover both types of transaction types with respect to JDBC and JMS applications.

Local Transactions

A local transaction deals with a single resource manager. Each resource manager provides access to a single external resource through a collection of configurations and processes (see Figure 16.1). A resource manager enforces the ACID properties for a specific external resource, such as an RDBMS or a JMS provider. ...

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.