This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Question in MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "Question in MDB" Watch "Question in MDB" New topic
Author

Question in MDB

somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
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 .


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Paramita Verghese
Greenhorn

Joined: Feb 18, 2002
Posts: 20
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


Some days are diamonds; some days are just stones
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question in MDB
 
Similar Threads
Important Query about nested transaction in EJB
MDB re-deliver???
MDB deadlock - how to solve it?
Enthuware question doubt
Can the client continue after getting the exception ??? and other doubts