O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

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

EJBs and Transactions

One of the services provided by the EJBs container is transactional control. Transactions can be controlled either programmatically by the developer or declaratively by the container. If transactions for a bean are controlled by the container, they are considered container-managed transactions (CMTs) and are declared by making entries in a configuration file used to deploy the EJB application. If the transactions for a bean are controlled by programmatic instructions, then they are considered bean-managed transactions (BMTs).

Since entity beans are guaranteed to be synchronized with a persistent data store, they are considered transactional by nature. With session beans, transactions are optional, but with entity beans, ...

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