• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Shutting down Message Listeners for Websphere MQ inside of Tomcat 6.0

 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic