9.3. The EJB transaction model

This section discusses the main features of the EJB transaction model. In later sections, we will look in detail at the particular methods that are available to the developer to control transactions.

9.3.1. Fundamental design decisions

The EJB transaction model is based on three fundamental design decisions.

First, transactions are flat. This means that for any EJB instance, exactly one transaction can be in effect at a time [EJB2.0 17.1.2]. If an EJB method that is currently running in a transaction calls a method that begins a new transaction, then the first transaction is suspended until the method call is complete. The suspended transaction will not be affected by anything that happens in the method call. ...

Get Applied Enterprise JavaBeans™ Technology 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.