定期把本地文件夹(./temp/file)下的文件上传到FTP服务器上。
<file:connector name="fileConnector" pollingFrequency="6000" /> <ftp:connector name="ftpConnector" outputPattern="${ORIGINALNAME}" /> <model name="model"> <service name="service"> <inbound> <file:inbound-endpoint path="./temp/file" connector-ref="fileConnector"> </file:inbound-endpoint> </inbound> <outbound> <pass-through-router> <ftp:outbound-endpoint host="ipaddress" port="21" user="username" password="password" path="/test" connector-ref="ftpConnector" /> </pass-through-router> </outbound> </service> </model>