Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS  RSS feed

 
Deepa Raja
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"When an EJBException (or any RuntimeException type) is thrown by any method in the MDB instance, the instance is immediately removed from memory and the transaction is rolled back."

What is the meaning of the transaction is rolled back?

is he trying to say the message will be sent back to the same Q?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This simply means that any work that occured processing the message before the exception was thrown will be reverted back to their original values. So if your MDB went to a database and did an update, that would be reverted back in the database, it would not be commited but rolledback.

It does not mean that the message goes back to the Q.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!