Skip to content

component sftp

assimbly edited this page May 20, 2022 · 6 revisions

The SFTP component send messages to or receives messages from an SFTP 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_SFTP

Testing

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

freeFTPd Download

Installing and configuring freeFTPd

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 all options, see Camel documentation.

Clone this wiki locally