-
Nov 8th, 2012, 08:45 AM
#1
get last item of chunk tasklet
Hi,
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
#2
Hi tobe96,
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.
Regards,
-
Nov 12th, 2012, 06:18 AM
#3
thanks maxjuiz, now I simply saved each item in my implemented ItemWriter and at the end stored the last value in the other database.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules