title: Spring batch Job read from multiple sources
body: <p>How can I read items from multiples databases? I already know that is possible from files.<br>
  the following example works for read from multiples files</p>
  
  <pre><code>...
  &lt;job id="readMultiFileJob" xmlns="http://www.springframework.org/schema/batch"&gt;
      &lt;step id="step1"&gt;
      &lt;tasklet&gt;
          &lt;chunk reader="multiResourceReader" writer="flatFileItemWriter"
              commit-interval="1" /&gt;
      &lt;/tasklet&gt;
      &lt;/step&gt;
  &lt;/job&gt;
  ...
  &lt;bean id="multiResourceReader"
      class=" org.springframework.batch.item.file.MultiResourceItemReader"&gt;
      &lt;property name="resources" value="file:csv/inputs/domain-*.csv" /&gt;
      &lt;property name="delegate" ref="flatFileItemReader" /&gt;
  &lt;/bean&gt;
  ...
  </code></pre>
  
  <hr>
  
  <p>three beans like this.</p>
  
  <pre><code>&lt;bean id="database2" class="org.springframework.batch.item.database.JdbcCursorItemReader"&gt;
      &lt;property name="name" value="database2Reader" /&gt;
      &lt;property name="dataSource" ref="dataSource2" /&gt;
      &lt;property name="sql" value="select image from object where image like '%/images/%'" /&gt;
      &lt;property name="rowMapper"&gt;
          &lt;bean class="sym.batch.ImagesRowMapper2" /&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>