INTSAMPLES-71 - Fix SFTP Outbound Sample

For reference see: https://jira.springsource.org/browse/INTSAMPLES-71
This commit is contained in:
Gunnar Hillert
2012-12-03 22:41:01 -05:00
parent 7c9ec6ab84
commit f4fcc22fa6
2 changed files with 29 additions and 15 deletions

View File

@@ -24,9 +24,9 @@ As you can see, although the remote directory had 3 files we only received 2 sin
## OUTBOUND CHANNEL ADAPTER
To run the OUTBOUND CHANNEL ADAPTER sample execute the **SftpOutboundTransferSample** test. You will see that based on the configuration it will attempt to transfer this **readme.txt** file to a remote directory **remote-target-dir**. The output should look like this:
To run the OUTBOUND CHANNEL ADAPTER sample execute the **SftpOutboundTransferSample** test. You will see that based on the configuration it will attempt to transfer the **README.md** file to a remote directory **remote-target-dir**. The output should look like this:
Successfully transfered 'readme.txt' file to a remote location under the name 'readme.txt_foo'
Successfully transferred 'README.md' file to a remote location under the name 'README.md_foo'
NOTE: You can see that we are using *SpEL* via the **remote-filename-generator-expression** attribute to define the remote file name by simply appending **_foo** to the original file name.