title: How to configure a Spring batch job with single reader and calling multiple writers depending on object returned
body: <p>Below is the job file currently i'm using.</p>
  
  <pre><code>&lt;batch:job id="job1"&gt;
      &lt;batch:step id="step1"&gt;
          &lt;batch:tasklet&gt;
              &lt;batch:chunk reader="reader" processor="processor" writer="ItemWriter" commit-interval="3"&gt;
              &lt;/batch:chunk&gt;
          &lt;/batch:tasklet&gt;
      &lt;/batch:step&gt;
  &lt;/batch:job&gt;
  </code></pre>