Forums Register Login

Question in MDB

+Pie Number of slices to send: Send
Which the following statement are true about MDBs invoked in transaction?
1. MDB must commit or rollback transaction before the completion of onMessage() method.
2. MDB can not use BMT demacation.
3. If a transaction of a CMT bean is rolled back, the message hadling also rolled back.
My answer 1, 3 are correct. That all right?
Please, let me .
+Pie Number of slices to send: Send
 

Originally posted by somkiat puisungnoen:
Which the following statement are true about MDBs invoked in transaction?
1. MDB must commit or rollback transaction before the completion of onMessage() method.
2. MDB can not use BMT demacation.
3. If a transaction of a CMT bean is rolled back, the message hadling also rolled back.
My answer 1, 3 are correct. That all right?
Please, let me .



Yes Somkiat, 1 & 3 are correct. 2 is false, coz MDBs sure can use BMT.
As for Option 3, I wouldn't say that message handling is rolled back, rather, the message acknowledgement is never sent to the JMS destination
Beauty is in the eye of the tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 847 times.
Similar Threads
Important Query about nested transaction in EJB
Can the client continue after getting the exception ??? and other doubts
MDB deadlock - how to solve it?
Enthuware question doubt
MDB re-deliver???
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:10:52.