This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Kubernetes in Action and have Marko Luksa on-line!
See this thread for details.
Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transactions and Messages  RSS feed

 
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
 
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
Boost this thread!