Add Retry to (S)FTP; Update SI 4.1.6
https://build.spring.io/browse/INTSAMPLES-NIGHTLY-JOB1-1430/test/case/97845436
This commit is contained in:
@@ -31,7 +31,11 @@
|
||||
command="ls"
|
||||
command-options=""
|
||||
expression="payload"
|
||||
reply-channel="toSplitter"/>
|
||||
reply-channel="toSplitter">
|
||||
<int-sftp:request-handler-advice-chain>
|
||||
<int:retry-advice />
|
||||
</int-sftp:request-handler-advice-chain>
|
||||
</int-sftp:outbound-gateway>
|
||||
|
||||
<int:splitter input-channel="toSplitter" output-channel="toGet"/>
|
||||
|
||||
@@ -42,13 +46,21 @@
|
||||
reply-channel="toRm"
|
||||
command="get"
|
||||
command-options="-P"
|
||||
expression="payload.remoteDirectory + payload.filename"/>
|
||||
expression="payload.remoteDirectory + payload.filename">
|
||||
<int-sftp:request-handler-advice-chain>
|
||||
<int:retry-advice />
|
||||
</int-sftp:request-handler-advice-chain>
|
||||
</int-sftp:outbound-gateway>
|
||||
|
||||
<int-sftp:outbound-gateway id="gatewayRM" reply-channel="aggregateResultsChannel"
|
||||
session-factory="sftpSessionFactory"
|
||||
expression="headers['file_remoteDirectory'] + headers['file_remoteFile']"
|
||||
request-channel="toRm"
|
||||
command="rm"/>
|
||||
command="rm">
|
||||
<int-sftp:request-handler-advice-chain>
|
||||
<int:retry-advice />
|
||||
</int-sftp:request-handler-advice-chain>
|
||||
</int-sftp:outbound-gateway>
|
||||
|
||||
<int:aggregator input-channel="aggregateResultsChannel"/>
|
||||
|
||||
|
||||
@@ -28,6 +28,10 @@
|
||||
session-factory="sftpSessionFactory"
|
||||
channel="inputChannel"
|
||||
remote-filename-generator-expression="payload.getName() + '_foo'"
|
||||
remote-directory="si.sftp.sample"/>
|
||||
remote-directory="si.sftp.sample">
|
||||
<int-sftp:request-handler-advice-chain>
|
||||
<int:retry-advice />
|
||||
</int-sftp:request-handler-advice-chain>
|
||||
</int-sftp:outbound-channel-adapter>
|
||||
|
||||
</beans>
|
||||
|
||||
Reference in New Issue
Block a user