Day 18. Building Bean-Managed Transaction Beans

On Day 17, “Building Container-Managed Transaction Beans,” we covered EJBs with container-managed transactions (CMTs). Today we'll closely examine the other type of transaction demarcation, the bean-managed transaction (BMT), which is the programmatic approach of performing transaction demarcation on the Java 2 Enterprise Edition (J2EE) platform. This will be illustrated through an example of how to develop, deploy, and run an EJB with bean-managed transaction demarcation. We'll explore the types of beans that can perform bean-managed transactions and the transaction semantics of each method that we use. We'll discuss the situations in which you can use this type of transaction and any restrictions ...

Get Sams Teach Yourself EJB in 21 Days 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.