I am having difficulty in trying to obtain a file read count within itemprocessor.
I have read similiar posts that are related to file read counter and they all suggest obtaining the readCount within the stepexecutionlistener afterStep, this approach is not suitable as I need the readCount total within the current step, not when the step has finished.
The purpose of trying to obtain readCount value within itemprocessor is that I am calculating the batch progress in which I pass back the value to the gui along with a number of other totals which are used for reporting purposes.
I have tried extending itemStream within ItemProcessor and using the open method try obtain readCount within executionContext by searching for read.count key but I get an null pointer exception.
Could anyone please put me in the right direction of obtaing a file readcount within itemprocessor?


Reply With Quote
