aspose file tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Transactions and Messages 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 "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: 210
"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
MessageDrivenBean - getUserTransaction?
one message comes in while previous one is still being consumed
BMT