title: JMS and Spring batch
body: <p>Our project is to integrate two applications, using rest api of each,  using JMS(to provide asynchronous nature) and spring batch to read bulk data from the JMS queue and process it and then post it to the receiving application. </p>
  
  <p>I am a newbie to both JMS and spring batch. I have few basic questions to ask:</p>
  
  <ul>
  <li>Which JMS model to ahead with-(<strong>PTP</strong> or <strong>Pub/Sub</strong>)</li>
  <li>Can messages be read in bulk from the JMS queue(using JMSItemReader). If yes, can anyone pls provide with a code.</li>
  <li>We want to acknowledge messages as 'read' once it is successfully posted (ie. read-process-write) to receiving application and not when it is read by the JMSItemReader. How can we achieve this?</li>
  </ul>
  
  <p>The high level design diagram is below
  <a href="https://i.stack.imgur.com/AhruQ.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/AhruQ.jpg" alt="enter image description here"></a></p>