When I have some duplicate rows (duplicate item/duplicate primary key), then I have below exception
and the whole process stopped. Meaning, no rows that are after the row which caused exception will be ignored.
ERROR LoggingHandler - org.springframework.integration.MessageHandlingException:
...
Caused by: org.springframework.dao.DuplicateKeyException:
...
Caused by: java.sql.SQLIntegrityConstraintViolationException:
Question:
Is there a way or what option should I use/configure the
jdbc outbound-channel-adapter
to skip/ignore the DuplicateKeyException and continue the process.
Something like