This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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
Joined: Mar 20, 2002
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