I am trying to develop a Java batch program using the IBM's JSR352 Implementation. Since the batch job involves iteratively processing huge number of records, I chose to implement it as Chunk Processing job. The problem statement is defined in detail over here.
Referring to the BonusUpdate example provided by IBM, they seem to be opening and closing the file within the reader's processItem() method for each of the 'N' number of records being read by the reader class.
Wouldn't this cause performance issue ? Can't we leave the file open until the last read ?