title: Spring MDP - how to shut it down on bad message
body: <p>I have got a Spring MDP implemented using Spring <code>DefaultMessageListenderContainer</code> listening to an input queue on WebSphere MQ v7.1. If there is a bad message coming in (that causes <code>RuntimeException</code>), what currently happens is that, the transaction is rolled back, and the message is put back into the queue. However the MDP goes into an infinite loop.</p>
  
  <p>Question 1: For my requirements I would like to be able to shut down the processing the moment it sees a bad message. No retries needed. Is it possible to shutdown the message listener gracefully in case it sees a bad message (as opposed to crude <code>System.exit()</code> or methods of that sort)? I definitely don't like it to go into an infinite loop.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Question 2: Is there a way to stop or suspend the listener container to stop further processing of messages?</p>