• 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
In our MDB , if any runtime exception will be caught, we are just logging the error.

I want to know , whether the message will be redeleiver to the same Queue or not.(Container Managed)

If so , what will be the settings for that in websphere admin cosole.We are not calling setRollBack() method in the code..How it will redeliver the message to the same Q.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have to invoke setRollbackOnly through your code for the message to be sent back into the queue.
 
Deepa Raja
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the code they are not calling the setRollBackOnly() method.But the message has been sent to the same Q.how this is possible?
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe even when the runtime exception is thrown, the server will rollback the transaction and also redeliver the message. So even if the setRollbackOnly is not invoked explicitly, if a runtime exception occurs, the message will be redelivered
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!