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 manager transaction demarcation (here referred to as CMTD, though the abbreviation isn't used in the EJB specification). Information in the deployment descriptor indicates when the EJB container should start and commit transactions.

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

Figure 8.1. The EJB proxy objects implement transaction (and security) ...

Get Sams Teach Yourself J2EE™ 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.