Relay Properties¶
This document contains a list of configurable properties for the Relay component and their uses.
For other components, please see these pages:
- Common (properties applicable across all AMI applications)
- Center (properties specific to the Center component)
- Web (properties specific to the Web component)
- WebBalancer and WebManager (properties for managing connections to 3forge Web)
General Relay Properties¶
Note
Property default values that are prefixed with a # are optional or must be configured by the user before use.
To run the Relay, you must include relay in the list of components found in the the ami.components property in local.properties:
By default, all three components are running. To run just the Relay component:
Relay Connection¶
Properties on configuring how connections can be made to a Relay
- Default:
- Description:
-
- Sets the name of the Relay
- This is useful for identification if multiple Relays are connected to a single Center
Note
Each Relay should have a unique ID
- Default:
- Description:
-
- Sets the port that applications connect to on the Relay's host machine
- Messages must follow the format specified on this page
- Set to
-1to disable
- Default:
- Description:
-
- Specifies the network interface that the
ami.portserver port is bound to
- Specifies the network interface that the
- Default:
- Description:
-
- Path to the keystore file (using Oracle keytool)
- Use with the
ami.port.keystore.passwordproperty
- Default:
- Description:
-
- Password associated to the keystore file
- Default:
- Description:
-
- Provides either a list of permitted hostname patterns, or a plugin for blocking/granting access based on foreign network address
-
Options syntax:
- file:
file:<file_containing_a_hostname_patterns_per_line\> - text:
text:<newline_delimited_list_of_hostname_patterns> - plugin:
plugin:<class_name_implementing_com.f1.ami.amicommon.AmiServerSocketEntitlementsPlugin\>
- file:
- Default:
- Description:
-
- The duration to wait for the Center to start up
- Default:
-
See the full list here:
Datasource adapter list
- Description:
-
- Default datasource adapters are provided by 3forge and implement the
AmiDatasourcePlugininterface - For custom adapters that we do not provide, see this documentation to write your own
- Default datasource adapters are provided by 3forge and implement the
- Default:
- Description:
-
- Sets the hostname of the primary Center instance this Relay is connected to
- Default:
- Description:
-
- Sets the port of the primary Center instance this Relay is connected to
- Default:
- Description:
-
- Comma delimted list of centers'
host:portto connect to - You can optionally prefix a
host:portwith an alias in the formalias=host:port, in which case the alias will be used to reference the Center within the dashboard - Note, the first supplied URL is considered the primary center. e.g:
ami.centers=myprimary=localhost:3270,other=some.host.com:3270
- Comma delimted list of centers'
ami.center.<NAME>.keystore.file
- Default:
- Description:
-
- Supply if the Center is using an SSL connection
- Path to the keystore file (using Oracle keytool)
NAMEis the Center's name as it appears inami.centersproperty- Use either with
ami.center.<NAME>.keystore.contents.base64orami.center.<NAME>.keystore.password
ami.center.<NAME>.keystore.password
- Default:
- Description:
-
- Supply if the Center is using an SSL connection
- Password associated to the keystore file in
ami.center.<NAME>.keystore.file NAMEis the Center name as it appears inami.centersproperty
ami.center.<NAME>.contents.base64
- Default:
- Description:
-
- Alternative to supplying the keystore file if the Center is using an SSL connection
- Supply the contents of a keystore as base64
NAMEis the Center name as it appears inami.centersproperty
Relay Logging¶
ami.relay.guaranteed.messaging.enabled
- Default:
- Description:
-
- If true, the Relay will use a store-and-forward journal to record messages to disk prior to an ACK message being sent to the originating client
- The journal can also be used to deliver messages to late-subscribing Centers
- Default:
- Description:
-
- Where to store the recovery journal files if
ami.relay.guaranteed.messaging.enabledis set totrue
- Where to store the recovery journal files if
- Default:
- Description:
-
- If set to true, all messages sent into and out of the Relay to/from other applications will be logged to a file
- Default:
- Description:
-
- If set to true, the relay will send a CR back on each response, in addition to a new line
Email¶
3forge can be used to send emails. For an overview of how this works, see the interoperability guide.
To configure email settings, you will need to know the SMTP information of your email provider.
At a minimum, you will need to provide the following configuration:
A full list of available properties is listed below.
Email Properties¶
- Default:
- Description:
-
- SMTP server to connect to
- Default:
- Description:
-
- The SMTP server port to connect to
- Default:
- Description:
-
- Email account username
- Default:
- Description:
-
- Email account password
- Default:
- Description:
-
- Attempts to connect via SSL if enabled
- Default:
- Description:
-
- Specifies which SSL protocol the email client is using
- Equivalent to the JavaMail property
mail.smtp.ssl.protocolsand has the same valid options
email.client.start.tls.enabled
- Default:
- Description:
-
- Attempts to connect via TLS if supported by the server
- Default:
- Description:
-
- Number of attempts to reconnect to SMTP server if connection fails
- Default:
- Description:
-
- Determines whether to exit 3forge if there is an email connection error
- Set to
falseto keep 3forge running even if email connection fails
email.client.connection.timeout
- Default:
- Description:
-
- Upon losing connection with the email client, how long to wait before timing it out
- Default behavior disables timeout
- Default:
- Description:
-
- How long to wait before timing out the email client
- Default behavior disables timeout
- Default:
- Description:
-
- How long to wait before timing out a write operation
- Default behavior disables timeout
- Default:
- Description:
-
- If set to
true, allows 3forge to add email-related information to the log
- If set to
Relay Transforms and Routes¶
The Relay can rewrite messages from feed handlers before they reach a Center, and choose which Centers receive each message. The rule files, dictionaries, and examples are described in Relay Transforms and Routes.
Relay Transform and Routing Properties¶
- Default:
- Description:
-
- File containing Relay transformation rules to be applied
- See Transform rules for the file format
- Default:
- Description:
-
- If
true, logs each message's path through the transform rules
- If
- Default:
- Description:
-
- Files containing dictionaries for Relay transform mappings
- Alternatively can be supplied as a comma-delimited list of different dictionary files
- See Dictionaries for the file format
- Default:
- Description:
-
- File containing routing tables used for controlling which real-time streaming messages are sent to which center(s)
- See Route rules for the file format
- If a file is not found, a placeholder with instructions will be created
- Default:
- Description:
-
- If
true, logs each message's path through the route rules
- If
- Default:
- Description:
-
- Comma-delimited list of AmiScript functions to disable in Relay
- Leave blank to enable all functions
- We recommend using the default values if using a WebManager