Using Transactions with Session Beans

The EJB container provides support for transactions as one of its primary services. The WebLogic EJB container makes use of the WebLogic Server's Java Transaction API (JTA) implementation.

In session EJBs, there are two transaction possibilities: bean-managed transactions and container-managed transactions. The transaction-type tag in the ejb-jar.xml selects the transaction type. For example, <transaction-type>Bean</transaction-type> would use bean-managed transactions.

Container-Managed Transactions

Container-managed transactions free the bean writer from explicitly coding calls to begin or commit a transaction. Instead, the EJB writer declares transaction attributes in the ejb-jar.xml deployment descriptor. ...

Get J2EE™ Applications and BEA™ WebLogic Server™ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.