O'Reilly logo

J2EE™ Applications and BEA™ WebLogic Server™ by Sandra L. Emerson, Rob Woollen, Michael Girdley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required