title: AWS SQS JMS Acknowledgement
body: <p>I am using default MessageListener for connecting to SQS queue. I want to track and retry for messages which has Exception. So I am using DUPS_OK_ACKNOWLEDGEMENT mode. In this case if I am doing acknowledgement for one message it is acknowledging all the messages in queue. </p>
  
  <p>How do I make each message ack work, and retry for messages with exception?</p>
  
  <pre><code>public class MyListener implements MessageListener {
      public void onMessage(Message message) {
      try{
          //my logic
          message.acknowledge();
      }catch(Exception e){
      }
  }}
  </code></pre>