aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Transaction Attributes for Timeout Callback BMT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Transaction Attributes for Timeout Callback BMT " Watch "Transaction Attributes for Timeout Callback BMT " New topic
Author

Transaction Attributes for Timeout Callback BMT

Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

Hi,

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 Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1731
    
  25

Yeah, that doesn't make sense does it. I wonder how I came up with that

(removed it and published an new version)
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

Thanks Frits, at least I did not ask something silly.
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

@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”
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1731
    
  25

Yeah, I have a feeling I got the information from that part of the specification. Probably got confused after so many pages (or was it beers )
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transaction Attributes for Timeout Callback BMT