Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transactions and Messages

 
Tyronne Fernando
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Tyronne Fernando
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the quick reply Lee.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic