Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MDB with BMT

 
Siva Masilamani
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Rajeev Rnair
Ranch Hand
Posts: 310
1
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Siva, I think the above discussion is based on EJB2 but the current exam is EJB3 based!
 
Siva Masilamani
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.But i think the concepts are still same.

please let me know your thoughts about my questions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic