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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access