File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Shutting down Message Listeners for Websphere MQ inside of Tomcat 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Shutting down Message Listeners for Websphere MQ inside of Tomcat 6.0" Watch "Shutting down Message Listeners for Websphere MQ inside of Tomcat 6.0" New topic
Author

Shutting down Message Listeners for Websphere MQ inside of Tomcat 6.0

garth schneider
Ranch Hand

Joined: Mar 20, 2002
Posts: 95
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

Joined: Mar 20, 2002
Posts: 95
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Shutting down Message Listeners for Websphere MQ inside of Tomcat 6.0