Transactions

One of the features of EJB that distinguishes it from typical distributed object systems is that it has integrated support for transactions. Although you do find transaction support in CORBA and MTS, the support provided in EJB is easier to use and more flexible.

As with the persistence model, you can choose whether you want the container or the bean to manage a transaction.

A transaction can be in effect for a single remote method invocation or it can span method invocations. By default, each remote method invocation takes place within a separate transaction.

One of the more interesting features of Enterprise JavaBeans is that a transaction can include more than just a database operation. The Java Message Service allows you to send ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.