O'Reilly logo

Sams Teach Yourself EJB in 21 Days by Krishna Kothapalli, Ragae Ghaly

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

Reviewing Transaction Attributes with CMT

Transaction attributes were briefly covered on Day 16. Here you'll learn more about using transaction attributes to control the scope of a container-managed transaction. When methodA of EJB1 invokes methodB of EJB2 (see Figure 17.2), the scope of the transaction depends on the transaction attribute setting of methodB in the deployment descriptor of EJB2.

Figure 17.2. Transaction scope.

Table 17.1 summarizes the effects of the transaction attribute of methodB on the scope of the originated transaction. In this table, both T1 and T2 are transactions that are controlled by the container. The T1 transaction ...

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