Guest User

Untitled

a guest
Jan 24th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. context = new ClassPathXmlApplicationContext();
  2. context.setConfigLocation("applicationContext.xml");
  3. JobLauncher jobLauncher = (JobLauncher)
  4. context.getBean("jobLauncher");
  5. Job job = (Job) context.getBean("myJob");
  6.  
  7. <batch:job id="myJob">
  8. <batch:step id="step1" >
  9. <batch:tasklet>
  10. <batch:chunk reader="jobReader" writer="jobWriter" commit-interval="1" />
  11. </batch:tasklet>
  12. </batch:step>
  13. </batch:job>
Add Comment
Please, Sign In to add comment