Announcement Announcement Module
Collapse
No announcement yet.
get last item of chunk tasklet Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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,

    Comment


    • #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.

      Comment

      Working...
      X