-
-
Notifications
You must be signed in to change notification settings - Fork 9
component ftp
assimbly edited this page May 20, 2022
·
8 revisions
The FTP component send messages to or receives messages from an FTP Server.
The endpoint path can have several formats:
host/directoryName
or
host:port/directoryName
or
username@host/directoryName
server/order
For local testing you can install freeFTPd as a local FTP/SFTP server:
Installing and configuring freeFPTd
Example of most common options:
- username=johndoe (this option isn't needed when using the URI: username@server/directory)
- password=secret
- delete=true (Will delete file on FTP server after consuming)
For enabling scheduling you can use the following options:
scheduler=quartz2 scheduler.cron=0/2+++++?
This wil read a file every two seconds. For more on cron expression, see https://www.freeformatter.com/cron-expression-generator-quartz.html
For all options, see Camel documentation.