You want to work with a resource that may fail when you try to read from or write to it.
You want to work with a resource that may fail when you try to read from or write to it. Correct Answer Spring batch retry
Use Spring Batch retry capabilities to systematically retry the read or write.