Announcement Announcement Module
Collapse
No announcement yet.
Flush failure context Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Flush failure context

    Hi!


    In a ItemWriter inside a org.springframework.batch.core.step.item.StatefulR etryStepFactoryBean how can i know which object(s) made the flush into the database fail?

    I see that there is a "failed" collection but it is not accessible from my delegate... :\


    /Luis Santos

  • #2
    You can implement the SkipListener interface - each time a failure-causing item is recognized and skipped you'll be called back with the item and exception.

    Comment

    Working...
    X