Container-Managed Transaction Demarcation

You've spent the last three days writing and deploying EJBs without really having to worry too much about transactions. This isn't to say that there have been no transactions in use; far from it. Every interaction with the database performed in the case study has involved transactions. However, the Session and Entity beans deployed have used container managed transaction demarcation (here referred to as CMTD, though the abbreviation isn't used in the EJB specification). This section discusses the support provided by J2EE for CMTD.

Information in the deployment descriptor indicates when the EJB container should start and commit transactions.

Figure 8.1 shows a diagram that you first saw on Day 6.

Figure ...

Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition 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.