Forums Register Login

Message-driven bean:Attributes

+Pie Number of slices to send: Send
I have a doubt in Message-driven beans transaction attribute.
In HFEJB PGNO 500, it is given that MDB can use only TWO attributes:Requires and NotSupported.
Iam not understanding what it means. Can anyone brief this.

Thank You
+Pie Number of slices to send: Send
Only the NotSupported and Required transaction attributes may be used for message-driven beans. The use of the other transaction attributes is not meaningful for message-driven beans because there can be no pre-existing transaction context (RequiresNew, Supports) and no client to handle exceptions (Mandatory, Never).

Note that it is Required, not Requires
+Pie Number of slices to send: Send
Thank you for Your nice note.Now Iam clear
+Pie Number of slices to send: Send
Hi, Satou,

What do you mean by "there can be no pre-existing transaction context"?

The Required transaction attribute can promise a pre-existing tran-context?
+Pie Number of slices to send: Send
 

What do you mean by "there can be no pre-existing transaction context"?


If there were one, it would be suspended, which is not possible for message driven beans as there's no client.
This will take every ounce of my mental strength! All for a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 771 times.
Similar Threads
HFE , message-driven question
JMS Vs. MDB
running background process
From HFEJB book- pg.108
MDB question.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:36:34.