features:install servicemix-ftp
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<ftp:config name="my-ftp-config" server="ftp.example.com" port="21" username="myusername" password="mypassword" />
<ftp:consumer name="ftp-consumer" config="my-ftp-config" directory="/incoming" />
<ftp:producer name="ftp-producer" config="my-ftp-config" />
</blueprint>
<route id="ftp-to-local">
<from uri="ftp:my-ftp-config:/incoming?username=myusername&password=mypassword" />
<to uri="file:/path/to/local/directory" />
</route>