title: spring batch dynamic query to itemreader
body: <pre><code>&lt;bean id="PagingItemReaderSANDOS"
  class="org.springframework.batch.item.database.JdbcPagingItemReader"
  scope="step"&gt;
  </code></pre>
  
  <p>always required a data source and a query provider </p>
  
  <p>but i have a scenario where i have to create a query  for ItemReader by  using some db configuration how to archive this .  </p>
  
  <p>I have to make the batch configuration database driven not from xml cause xml required a server restart how to avoid that .  is there any way i can archive both like query will be formed by java program and push it to  itemreader with out restart of server </p>