objmqdsxjt 发表于 2016-6-7 10:13:37

FTP Transport

  定期把本地文件夹(./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>
  
  
  
  
页: [1]
查看完整版本: FTP Transport