<?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"> <ftp:remote-host id="ftpServer" server="ftp.example.com" port="21" username="user" password="password"/> <ftp:consumer id="ftpConsumer" remotePath="/incoming" localPath="/data/incoming" autoCreate="true" delete="true" move="done" moveFailed="error" binary="true" recursive="false" delay="5000" maxMessagesPerPoll="10"/> <ftp:producer id="ftpProducer" remotePath="/outgoing" localPath="/data/outgoing" autoCreate="true" moveFailed="error" binary="false"/> <camelContext xmlns="http://camel.apache.org/schema/blueprint"> <route> <from uri="ftpConsumer"/> <to uri="log:incomingFiles"/> </route> <route> <from uri="file:/data/outgoing"/> <to uri="ftpProducer"/> </route> </camelContext> </blueprint>


上一篇:
下一篇:
切换中文