*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Transactions and Messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Transactions and Messages" Watch "Transactions and Messages" New topic
Author

Transactions and Messages

Tyronne Fernando
Ranch Hand

Joined: May 11, 2008
Posts: 50
Hi,

Please let me know whether the Message is sent in the following scenario:

"A session bean sends a message to a MDB within a transaction. After sending the message the transaction is marked for rollback."

Is the message will be sent to the MDB?

Thanks in advance.

Cheers,
Tyronne
Lee Kian Giap
Ranch Hand

Joined: Jan 23, 2008
Posts: 213
"A session bean sends a message to a MDB within a transaction. After sending the message the transaction is marked for rollback."


I assume that the transaction you mean is begin in the session bean and is rollback in that session bean , it does not mean a new transaction in MDB

Answer is Message not sent.


SCJP 6, SCWCD 5, SCBCD 5
Tyronne Fernando
Ranch Hand

Joined: May 11, 2008
Posts: 50
Thanks for the quick reply Lee.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transactions and Messages
 
Similar Threads
MDB with MessageConsumers
Doubt about MDB behavior
BMT
MessageDrivenBean - getUserTransaction?
one message comes in while previous one is still being consumed