Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- context = new ClassPathXmlApplicationContext();
- context.setConfigLocation("applicationContext.xml");
- JobLauncher jobLauncher = (JobLauncher)
- context.getBean("jobLauncher");
- Job job = (Job) context.getBean("myJob");
- <batch:job id="myJob">
- <batch:step id="step1" >
- <batch:tasklet>
- <batch:chunk reader="jobReader" writer="jobWriter" commit-interval="1" />
- </batch:tasklet>
- </batch:step>
- </batch:job>
Add Comment
Please, Sign In to add comment