Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Component("pricereader")
- public class MyItemReader implements ItemReader<Price>{
- @Override
- public Price read() throws Exception, UnexpectedInputException, ParseException,
- NonTransientResourceException {
- // TODO Auto-generated method stub
- return null;
- }
- <batch:job id="job1">
- <batch:step id="step1">
- <batch:tasklet>
- <batch:chunk reader="pricereader" processor="priceprocessor" writer="pricewriter" commit-interval="1"/>
- </batch:tasklet>
- </batch:step>
- </batch:job>
- private Scanner scanner;
- public MyItemReader(String filepath){
- //initializing scanner
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement