Hi All,
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?Code:Caused by: org.springframework.core.NestedIOException: failed to write file; nested exception is 4: java.net.SocketException: Broken pipe at org.springframework.integration.sftp.session.SftpSession.write(SftpSession.java:106)
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.
Regards,
Krzysztof


Reply With Quote


