SFTP

You can configure SFTP as a source or a target. The parameters are described in the following tables:

For message headers, see SFTP Message Headers.

SFTP Source Parameters

The following table describes the parameters for configuring SFTP as a source.

Field Description
Checkpoint Store Configuration

Checkpoint Queue

The name of the Last Value Queue (LVQ) (spool size 0) to be used for checkpointing. The queue must exist on the same event broker and Message VPN as the target queue.

The SFTP Micro-Integration stores the current progress of file processing in a checkpoint store backed by the specified LVQ.

If the LVQ is deleted (administratively) or a message from the LVQ is deleted or consumed by another consumer, the SFTPMicro-Integration will not be able to resume from the last checkpoint. In addition, the LVQ should not be shared by multiple SFTPMicro-Integrations.

Auto Create Checkpoint Queue

Select this option to automatically create the LVQ if it does not exist.

SFTP Server Configuration

SFTP Server URI

The source SFTP server URI and start directory path.

Required format: sftp://<host>:<port>/<startDirectoryName>/

For example: sftp://localhost:22/orders-data/

Username

The username to use to log in to the SFTP server.

Password

The password to use to log in to the SFTP server, if you are using password authentication. If you don't set a password, you must upload a private key file.

Private Key File

The private key file to use for private key verification.

Private Key Passphrase

The private key file passphrase to use for private key verification.

Known Hosts File

The Known Hosts file for the SFTP server to use for host key verification.

File Format

The format of the files coming from the SFTP server:

Additional Properties

(Optional) Any additional configuration related to SFTP. Click Add Context if you need to specify additional context properties. For more information, see Additional Source Parameters for SFTP

Delimited File Configuration Properties

Field Description

Event Delimiter

The events in the files are separated by this character. For example: \n (a newline character).

Field Delimiter

The fields within the events are separated by this character. For example: , (a comma).

JSON File Configuration Properties

Field Description

JSON Path Filter Expression

The JSON path expression to extract, split, or filter the data from the JSON file.

The default value of $ means the entire JSON file content will be processed as a single event. For a JSON file larger than 30 MB, this will cause an error because the maximum size of a Solace message is 30 MB. We recommend splitting the JSON file content into multiple events by configuring the JSON path expression.

XML File Configuration Properties

Field Description

XPath Filter Expression

The XPath expression to extract, split, or filter the data from the XML file.

The default value of / means the entire XML file content will be processed as a single event. For XML file larger than 30MB, it would result in exception as max Solace message size is 30MB. We recommend splitting the XML file content into multiple events by configuring the XPath expression.

For example, for an employees.xml file with following content, the XPath expression to extract employee nodes would be //employee:

<employees>
    <employee>
        <name>John</name>
        <age>30</age>
    </employee>
    <employee>
        <name>Smith</name>
        <age>40</age>
    </employee>
</employees>
                        

Additional Source Parameters for SFTP

The following table lists the additional source-specific parameters for SFTP. For more information, see the Apache Camel SFTP Component documentation.

SFTP Target Parameters

The following table describes the parameters for configuring SFTP as a target.

Configuration Option Description
Checkpoint Store Configuration

Checkpoint Queue

The name of the Last Value Queue (LVQ) (spool size 0) to be used for checkpointing. The queue must exist on the same event broker and Message VPN as the target queue.

The Micro-Integration for SFTP stores the current progress of file processing in a checkpoint store backed by the specified LVQ.

If the LVQ is deleted (administratively) or a message from the LVQ is deleted or consumed by another consumer, the Micro-Integration for SFTP will not be able to resume from the last checkpoint. In addition, the LVQ should not be shared by multiple instances of the Micro-Integration for SFTP.

Auto Create Checkpoint Queue

Select this option to automatically create the LVQ if it does not exist.

SFTP Server Configuration

SFTP Server URI

The target SFTP server URI and start directory path.

Required format: sftp://<host>:<port>/<startDirectoryName>/

For example: sftp://localhost:22/orders-data/

Username

The username to use to log in to the SFTP server.

Password

The password to use to log in to the SFTP server, if you are using password authentication. If you don't set a password, you must upload a private key file.

Private Key File

The private key file to use for private key verification.

Private Key Passphrase

The private key file passphrase to use for private key verification.

Known Hosts File

The Known Hosts file for the SFTP server to use for host key verification.

Write Mode

The action to take if a file with the same name already exists:

  • Append—Events are added to the existing file.

  • Override—The existing file is replaced.

  • Fail—An error is generated, indicating that there is already an existing file.

Maximum File Size

The maximum size of the file in bytes. If the value is 0, then there is no limit.

Maximum Number of Events

The maximum number of events to be written to a file, after which a new file is created. If the value is 0, then there is no limit.

Additional Properties

(Optional) Any additional configuration related to SFTP. Click Add Context if you need to specify additional context properties. For more information, see Additional Target Parameters for SFTP.

Additional Target Parameters for SFTP

The following table lists the additional target-specific parameters for SFTP. For more information, see the Apache Camel SFTP Component documentation.