
Originally Posted by
Dave Syer
ItemWriter.write() accepts a List of items, so it is impossible in general to know if one of them failed or all of them. If you write you own ItemWriter and it processes each item in turn, of course you can catch exceptions and process them. Otherwise the only way to nail an individual item is with ItemWriteListener. In general there may not even be an item-specific error - it might just be a connectivity problem, or a problem that only arises when all the items are cross-validated.