Meaningless Drivel is fun!*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes MDB with BMT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "MDB with BMT" Watch "MDB with BMT" New topic
Author

MDB with BMT

Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
Hi

I was going through this post webpage and have some questions about it.

1. MDB with BMT throws System Exception :
Log the exception,Rollback the started transaction,discard the bean and throws exception back to resource adapter.But in this case the message is acknowledged anyway right? Because the message receipt is part of transaction that the containter starts and once it is received it will commit the tx and hence acknowledged the message and then call onMessage.Please correct me if i am wrong?

2. MDB with BMT throws System Exception but no transaction :
Discard the bean and throws the exception back to resource adapter. What about message acknowledgement?. The Tx started by container for message receipt will get committed or suspended before call to onMessage?

3. MDB with CMT but NOT_SUPPORTED throws System exception.
Log the exception,discard the bean and rethrow the exception to resource adapter but what about message acknowledgement?what about the transaction started by the container for message receipt, does it commit before call to onMessage or get Suspended?


SCJP 6,SCWCD 5,SCBCD 5

Failure is not an option.
Rajeev Rnair
Ranch Hand

Joined: Mar 22, 2010
Posts: 308

Hi Siva, I think the above discussion is based on EJB2 but the current exam is EJB3 based!


SCJP6, SCWCD5, OCP-JBCD5, OCE-JWSD6 OCE-JPAD6 , OCM-JEA5 1,OCM-JEA5 2,3 - Brainbench certifications: J2EE, Java2, Java2-NonGUI, JSP, SQL2000 Admin, SQL2000 Programming , Brainbench certified Java Programmer, Computer Programmer, Web Developer, Database Administrator
Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
Yes.But i think the concepts are still same.

please let me know your thoughts about my questions.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MDB with BMT