private static IdempotentRepository getIdempotentRepository(String
Map repoMap = new HashMap<String, Object>();
File fileStore = new File("camel/idempotent-repos/" + name +
return new FileIdempotentRepository(fileStore, repoMap);
When I am aggregating multiple rows from a CSV file, it is possible that
for a few records I might get DataIntegrityViolationException because of
some DB constraints.
There is no use in retrying those records since it is a data issue and not
network / connection failure.
Since the exception is being set at Exchange level, is there a way to
identify the erroneous record from the aggregated message and process the
remaining rows ?
Or any other strategy which could be helpful to mitigate this type of issue