Nov 8th, 2012, 08:45 AM
get last item of chunk tasklet
beside the normal chunk execution with reader and writer I wanna get the very last item of the chunk's tasklet to store the ID additionally in another database. Are there any listener to be called for the last item or what's the best practice for it?
Nov 8th, 2012, 12:35 PM
I think you can save always the item you are processing and implements the @AfterChunk event. In this implementation, you can get the value of the last item you saved before.
Nov 12th, 2012, 06:18 AM
thanks maxjuiz, now I simply saved each item in my implemented ItemWriter and at the end stored the last value in the other database.