Any ideas on how to implement simple retry mechanism for SFTP adapter? From time to time I'm getting the following exception:
and since it is a network issue I would like to try to send it one more time. Don't want to throw an exception and terminate processing. Is there a common strategy for such cases?
Caused by: org.springframework.core.NestedIOException: failed to write file; nested exception is 4: java.net.SocketException: Broken pipe
Would it be possible to add max-retries parameter to sftp:outbound-channel-adapter that allows retry in case of an exception during the file transmission?
Your help is really appreciated.