Skip to content

component ftp

assimbly edited this page May 20, 2022 · 8 revisions

The FTP component send messages to or receives messages from an FTP Server.

Path

The endpoint path can have several formats:

host/directoryName

or

host:port/directoryName

or

username@host/directoryName

Path Examples

server/order

Screenshot

From_Endpoint_FTP

Testing

For local testing you can install freeFTPd as a local FTP/SFTP server:

freeFTPd Download

Installing and configuring freeFPTd

Common options

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.

Clone this wiki locally