In my requirement a new job will started every 5 mins. The ItemReader fetches 50 records from DB and ItemWriter writes it to a XMLFile.
My Problem here is some times ItemReader won't get any Data from DB , bcoz it processed all records , In that cases when the Job will die?
Is there any ways to kill the Job when we don't get Data from DB.
Some one can explain the LifeCyle of Job with ItemReader,ItemWriter.