title: Can we write a Spring Batch Job Without ItemReader and ItemWriter
body: <p>In my project, I have written a Quartz scheduler with Spring Batch 2.2.</p>
  
  <p>As per my requirement, I want to run a scheduler to fetch application config property to refresh the configuration cache on all the GlassFish Clusters.</p>
  
  <p>So I dont need ItemWriter and ItemReader which are used to for File Read/Write operations.
  So can I remove <strong>ItemReader</strong> and <strong>ItemWriter</strong> from  ?</p>
  
  <p>The configuration of my job is mentioned below :</p>
  
  <pre><code> &lt;batch:job id="reportJob"&gt;
                   &lt;batch:step id="step1"&gt;
                       &lt;batch:tasklet&gt;    
      &lt;!--I want to remove ItemReader and ItemWriter as its not used --&gt;          
                           &lt;batch:chunk reader="ItemReader" writer="ItemWriter" 
                              commit-interval="10"&gt; 
                          &lt;/batch:chunk&gt; 
                      &lt;/batch:tasklet&gt; 
                  &lt;/batch:step&gt; 
  
                  &lt;batch:listeners&gt;
                      &lt;batch:listener ref="simpleListener"/&gt;
                  &lt;/batch:listeners&gt;
              &lt;/batch:job&gt;
  
  &lt;bean id="jobDetail" class="org.springframework.scheduling.quartz.JobDetailBean"&gt;
              &lt;!-- Cache Refresh code is written here : JobLauncherDetails.java file --&gt;
          &lt;property name="jobClass" value="com.mkyong.quartz.JobLauncherDetails" /&gt;
          &lt;property name="group" value="quartz-batch" /&gt;
          &lt;property name="jobDataAsMap"&gt;
              &lt;map&gt;
                  &lt;entry key="jobName" value="reportJob" /&gt;
                  &lt;entry key="jobLocator" value-ref="jobRegistry" /&gt;
                  &lt;entry key="jobLauncher" value-ref="jobLauncher" /&gt;
                  &lt;entry key="param1" value="mkyong1" /&gt;
                  &lt;entry key="param2" value="mkyong2" /&gt;
              &lt;/map&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>I writing my business logic to refresh cache on JobClass JobLauncherDetails.java.
  So is it possible to remove ItemReader and ItemWriter ? Do we have any possible alternative way ?</p>