Connector Configuration
Providing Configuration
For information about about how the connector detects configuration properties, see Spring Boot: Externalized Configuration.
Converting Canonical Spring Property Names to Environment Variables
For information about converting the Spring property names to environment variables, see the Spring documentation.
Spring Profiles
If multiple configuration files exist within the same configuration directory for use in different environments (development, production, etc.), use Spring profiles.
Using Spring profiles allow you to define different application property files under the same directory using the application-{profile}.yml
filename format.
For example:
application.yml
: The properties in non-specific files that always apply. Its properties are overridden by the properties defined in profile-specific files.application-dev.yml
: Defines properties specific to the development environment.application-prod.yml
: Defines properties specific to the production environment.
Individual profiles can then be enabled by setting the spring.profiles.active
property. See Spring Boot: Profile-Specific Files for more information and an example.
Configuring Locations to Find Spring Property Files
By default, the connector detects any Spring property files that are located in Spring Boot’s default locations.
-
If you want to configure additional locations, add
--spring.config.additional-location=file:<custom-config-dir>
. -
If you want to exclusively use the locations that you’ve defined and ignore Spring Boot’s default locations, add
--spring.config.location=optional:classpath:/,optional:classpath:/config/,file:<custom-config-dir>
.
For an example of the command to add additional locations, see Quick Start: Running the Connector Using the Command Line.
For more information about configuring locations to find Spring property files, see Spring Boot documentation.
If you want configuration files for multiple different connectors within the same config
directory for use in different environments (such as, development, production, etc.), we recommend that you use Spring Boot Profiles instead of child directories.
For example, set up your configuration like this :
config/application-prod.yml
config/application-dev.yml
Do not set it up like this:
config/prod/application.yml
config/dev/application.yml
Child directories are intended to be used for merging configuration from multiple sources of configuration properties. For more information and an example showing when you might want to use multiple child directories to compose your application’s configuration, see the Spring Boot documentation.
Obtaining Build Information
Build information that includes the version, build date, time, and description is enabled by default using the Spring Boot Actuator Info Endpoint. By default, a connector only shares information related to its build.
The following example shows the structure of the output data:
{ "build": { "version": "<connector version>", "artifact": "<connector artifact>", "name": "<connector name>", "time": "<connector build time>", "group": "<connector group>", "description": "<connector description>", "support": "<support information>" } }
If you want to exclude build data from the output of the info
endpoint, set management.info.build.enabled
to false
.
Alternatively, if you want to disable the info endpoint entirely, you can remove info
from the list of endpoints specified in management.endpoints.web.exposure.include
.
Spring Configuration Options
This connector uses Spring configuration options to customize functionality that includes Spring Cloud Binder for Solace PubSub+ and other common Spring Boot libraries.
Using the Spring Cloud Binder for Solace PubSub+
An important piece for customizing the Spring configuration options for Self-Managed Connectors is the Spring Cloud Binder for Solace PubSub+. There are configuration options available that you may find useful to configure the connector such as:
-
endpointType
, which is a consumer configuration option to configure the type of endpoint (queue or topic endpoint) that consumers read messages from -
selector
, which is a consumer configuration option to configure an endpoint's message selector -
producer configuration options to publish messages within transacted sessions
-
authentication schemes to connect to a PubSub+ event broker, such as basic authentication (default) , client certificate, or OAuth 2.0
For more information about:
- Other configuration options available for the Spring Cloud Binder for Solace PubSub+ and detailed information for the configuration options in the list above, see the Solace Binder Configuration Options.
- The latest, supported features for the Spring Cloud Binder for Solace PubSub+, see the Spring Cloud Binder for Solace PubSub+ release notes.
Using Other Spring Boot Libraries
The following are other common references to Spring Boot libraries that you can use to configure your connector that you may find useful:
Configuration Option | Type | Valid Values | Default Value | Description |
---|---|---|---|---|
|
|
Any |
None |
The username to use to log in. |
|
|
Any |
None |
The password to use for login, if you are using password authentication. If you don't specify a password, you must use a private key file. |
|
|
None |
The private key file for the SFTP endpoint to use for private key verification. |
|
|
|
Any |
None |
The private key file passphrase for the SFTP endpoint to use for private key verification. |
|
|
|
|
Indicates whether to use passive mode connections. The default ( |
|
|
None |
The You can create a ssh-keyscan -H <host> -P <port> >> known_hosts. For example: ssh-keyscan -H myftpserver -p 22 >> known_hosts |
|
|
|
|
|
Indicates whether to use strict host key checking. The default ( |
|
|
|
|
Indicates whether the |
|
|
None |
A comma-separated list of ciphers to use, listed in order of preference. Possible cipher names are defined by JCraft Java Secure Channel (JSch). Some examples include aes128-ctr, aes128-cbc, 3des-ctr, 3des-cbc, blowfish-cbc, aes192-cbc, and aes256-cbc. |
|
|
|
None |
A comma-separated list of key exchange protocols to use, listed in order of preference. Possible cipher names are defined by JCraft JSch. Some examples include: diffie-hellman-group-exchange-sha1, diffie-hellman-group1-sha1, diffie-hellman-group14-sha1, diffie-hellman-group-exchange-sha256, ecdh-sha2-nistp256, ecdh-sha2-nistp384, and ecdh-sha2-nistp521. |
|
|
|
None |
A comma-separated list of accepted public key algorithms. Some examples include ssh-dss, ssh-rsa, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, and ecdsa-sha2-nistp521. |
|
|
|
None |
A comma-separated list of algorithms supported for the server host key. Some examples include: ssh-dss, ssh-rsa, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, and ecdsa-sha2-nistp521. |
|
|
|
|
|
The time in milliseconds to wait for a connection to be established. |
|
|
|
|
The socket timeout, in milliseconds. |
|
|
|
None |
The maximum number of times to retry to establish an initial connection to the remote FTP server. Use 0 to disable this behavior. |
|
|
|
|
The delay in milliseconds to wait before retrying the connection. |
|
|
|
|
The maximum number of keep-alive messages to send without receiving any messages back from the server. If this threshold is reached while keep-alive messages are being sent, the connection is closed. |
|
|
|
|
The interval (in milliseconds) between keep-alive messages. If zero is specified, no keep-alive messages are sent. |
|
|
|
|
The file transfer mode, either binary or ASCII. The default ( |
|
|
A valid charset value. |
None |
The character encoding of the file contents, for example |
|
|
|
|
The action to take if a file with the same name already exists:
|
|
|
Any valid filename. |
None |
The filename to write to. It can include the leading file path. For example: sub1/sub2/employee.csv If the filename is not set, a randomly generated UUID is used, in which case each event is written to a unique file. The fileName can be specified using a Camel Simple Language expression, for example: fileName: "backup/$#{date:now:yyyyMMdd}/test.txt" |
|
|
Unix |
None |
The permissions (mode) to set on the file. |
|
|
Unix |
None |
The permissions (mode) to set on the directory. |
|
|
|
|
Indicates whether to prevent duplicate events from being written to the target file. Duplicate events are identified based on the value of the |
|
|
|
|
Indicates whether to check for duplicates only on redelivery. The default (true) is to check for duplicates for redelivered events only. If Use this option only when |
|
|
Any valid header name |
|
The user property or header name to be used for uniquely identifying events. Use this option only when |
|
|
|
|
The size of the in-memory cache used to store event unique identifiers. Use this option only when |
|
|
|
|
The maximum number of events to be written to a file. If the value is 0, then there is no limit. |
|
|
|
|
The maximum size of the file in bytes. If the value is 0, then there is no limit. |
|
|
Any valid string |
Empty string |
The string to be prepended to the event. |
|
|
Any valid string |
|
The string to be appended to the event. |
|
|
Any valid string |
Empty string |
The string to be prepended to the file (for example, a header line). This is done only once when the file is created. |
|
|
Any valid string |
Empty string |
The string to be prepended to the first event. |
|
|
Enum values: |
|
Logging levels control how much information is saved to the log file. During troubleshooting, it may be useful to raise the logging level to increase the amount of information the logs receive from the FTP server. |
Connector Configuration Options
The following table lists the configuration options. The following options in Config Option are prefixed with solace.connector.
:
Config Option | Type | Valid Values | Default Value | Description |
---|---|---|---|---|
|
|
|
|
The maximum number of attempts to perform a fail-over. |
|
|
|
|
The initial interval (milliseconds) to back-off when retrying a fail-over. |
|
|
|
|
The maximum interval (milliseconds) to back-off when retrying a fail-over. |
|
|
|
|
The multiplier to apply to the back-off interval between each retry of a fail-over. |
|
|
|
|
The connector’s leader election mode. standalone: A single instance of a connector without any leader election capabilities. active_active: A participant in a cluster of connector instances where all instances are active. active_standby: A participant in a cluster of connector instances where only one instance is active (i.e. the leader), and the others are standby. |
|
|
Any |
|
The management queue name. |
|
See Spring Boot Auto-Configuration for the Solace Java API for more information. |
Defines the management session. This has the same interface as that used by |
||
|
|
|
|
If |
|
|
Any |
|
The name of the user. |
|
|
Any |
|
The password for the user. |
|
|
|
Empty list (i.e., read-only) |
The list of roles that the specified user has. It has read-only access if no roles are returned. |
Workflow Configuration Options
These configuration options are defined under the following prefixes:
solace.connector.workflows.<workflow-id>.
: If the options support per-workflow configuration and the default prefixes.solace.connector.default.workflow.
: If the options support default workflow configuration.
Config Option | Applicable Scopes | Type | Valid Values | Default Value | Description |
---|---|---|---|---|---|
|
Per-Workflow |
|
|
|
If |
|
Per-Workflow Default |
|
|
|
If true, message transformation is enabled for the workflow. Disables the legacy |
|
Per-Workflow Default |
|
One of:
|
|
The content type to interpret the source payload as. See Content Type Interpretation for more info. |
|
Per-Workflow Default |
|
One of:
|
|
The content type to interpret the target payload as. See Content Type Interpretation for more info. |
|
Per-Workflow Default |
|
An expression |
- |
An expression at some For more information, see Mapping Message Headers and Payloads. |
This feature is deprecated and will be removed in a future release. Use the configuration described in Mapping Message Headers and Payloads instead. |
Per-Workflow Default |
|
Key: A header name. Value: A SpEL string that accepts |
Empty map |
A mapping of header names to header value SpEL expressions. The SpEL context contains the headers parameter that can be used to read the input message’s headers. |
This feature is deprecated and will be removed in a future release. Use the configuration described in Mapping Message Headers and Payloads instead. |
Per-Workflow Default |
|
An expression |
- |
A SPeL expression defining a payload transformation. |
|
Per-Workflow Default |
|
|
|
If The workflow’s consumer and producer bindings must support this mode, otherwise the publisher acknowledgments are processed synchronously regardless of this setting. |
|
Per-Workflow Default |
|
|
|
The maximum number of outstanding messages with unresolved acknowledgments. Message consumption is paused when the threshold is reached to allow for producer acknowledgments to catch up. |
|
Per-Workflow Default |
|
|
|
The maximum amount of time (in milliseconds) to wait for asynchronous publisher acknowledgments before considering a message as failed. A value of |