title: Spring Batch - Loop reader, processor and writer for N times
body: <p>In Spring Batch, how to loop the reader,processor and writer for N times?</p>
  
  <p>My requirement is: </p>
  
  <p>I have "N" no of. customers/clients. 
  For each customer/client, I need to fetch the records from database (Reader), then I have to process (Processor) all records for the customer/client and then I have to write the records into a file (Writer).</p>
  
  <p>How to loop the spring batch job for N times?</p>