Forums Register Login

Transaction Attributes for Timeout Callback BMT

+Pie Number of slices to send: Send
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
1
+Pie Number of slices to send: Send
Yeah, that doesn't make sense does it. I wonder how I came up with that

(removed it and published an new version)
+Pie Number of slices to send: Send
Thanks Frits, at least I did not ask something silly.
+Pie Number of slices to send: Send
@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”
+Pie Number of slices to send: Send
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 )
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 850 times.
Similar Threads
TransactionAttribute
Answers of Sun's Free Proficiency Assessment
Transaction Attribute for timeout callback method
Transactions
Container-Managed Transaction
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:29:46.