blob: cd11daa892147e84f317d20c40cff25bfcb1d8c9 [file] [log] [blame]
h2. servicemix-ftp
h3. Overview
The ServiceMix FTP component provides JBI integration to the FTP servers. It can be used to read & write files over FTPor to periodically poll directories for new files.
h4. Namespace and xbean.xml
The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/ftp/1.0}}. This is an example of an {{xbean.xml}} file with a namespace definition with prefix {{bean}}.
{pygmentize:lang=xml}
<beans xmlns:ftp="http://servicemix.apache.org/ftp/1.0">
<!-- add ftp:poller and ftp:sender definitions here -->
</beans>
{pygmentize}
h4. Endpoint types
The servicemix-ftp component defines two endpoint type:
- {{ftp:poller}} :: Periodically polls a directory on an FTP server for files and sends an exchange for every file
- {{ftp:sender}} :: Writes the contents of an exchange to a file on an FTP server
h3. {{ftp:poller}}
h4. Endpoint properties
{include:jbi/components/_servicemix-ftp-poller.conf}
h3. {{ftp:sender}}
h4. Endpoint properties
{include:jbi/components/_servicemix-ftp-sender.conf}