This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have been always under the impression, transaction attributes are applicable only to Container Managed Transactions. But, I see this in Enterprise Java Beans 3.pdf(by Frits, page 5-53), in the table
Timeout Callback BMT X REQUIRED REQUIRES_NEW X NOT_SUPPORTED X
Does this mean when a @Timeout method is under BMT and the corresponding @AroundTimeout method in CMT?
Thanks
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
@Frits, I guess you would have meant that Timeout callback MDB
I got this excerpt from EJB3.1 spec-
5.4.12Transaction Context of Message-Driven Bean Methods A bean’s message listener and timeout callback methods are invoked in the scope of a transaction determined by the transaction attribute specified in the bean’s metadata annotations or deployment descriptor. If the bean is specified as using container-managed transaction demarcation, either the REQUIREDor the NOT_SUPPORTED transaction attribute must be used for the message listener methods, and either the REQUIRED, REQUIRES_NEW, or the NOT_SUPPORTED transaction attribute for timeout callback methods. See Chapter 13, “Support for Transactions”
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)