Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction Attributes for Timeout Callback BMT

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2339
90
Android Chrome Eclipse IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Frits, at least I did not ask something silly.
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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
Saloon Keeper
Pie
Posts: 2339
90
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic