Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Shutting down Message Listeners for Websphere MQ inside of Tomcat 6.0

 
garth schneider
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a application written in Spring 2.5 running in Tomcat 6.0. When a rollback to the queue occurs I would like the message to rollback to the queue and the message listener to stop. I do not want the message to go to the dead letter queue.
Websphere Application Server has a Maximum retries count. If the threshold count is set higher than the maximum retry count the listener will stop. How is this done in Tomcat.
Garth Schneider
 
garth schneider
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I figured it out. I injected my messageListenerContainer into my Message listener POJO. And then just called the stop method on the class. listener.stop

Problem solved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic