title: Apache camel jms queue REconsuming
body: <p>Theoretical question. Working with JMS and Apache Camel asynchronously.</p>
  
  <p>Is it possible create solution like:</p>
  
  <ol>
  <li>Consumer consumes message <code>A</code> from <code>first.queue</code> queue</li>
  <li>Message <code>A</code> is still in <code>first.queue</code> queue
  
  <ul>
  <li>Consumer do some logical action <code>X</code> with received message <code>A</code>, and finished with error(s). In this case, I want to schedule the same operation — receive message <code>A</code> from <code>first.queue</code> and do action <code>X</code> again</li>
  <li>If action <code>X</code> finishes successfully, then remove message <code>A</code> from queue and finish the job</li>
  </ul></li>
  </ol>
  
  <p><strong>In other words, I want to keep message <code>A</code> in queue <code>first.queue</code>, till action <code>X</code> is finished without errors. When its done - remove message from queue.</strong></p>