Configure connection
Configure the connection from FairCom DB Notify to FairCom MQ using the <faircom>/config/dbnotifyconnections.json
file.
Configure the connection from FairCom DB Notify to FairCom MQ using the dbnotifyconnections.json
file.
Example dbnotifyconnections.json
file
{ "logLevel": "development", "directConnectionsToFairComMq": [ { "brokerConnectionName": "brokerCtree", "faircomServerName": "FCEDGEMQ", "brokerHostname": "localhost", "brokerUserName": "ADMIN", "brokerUserPassword": "ADMIN", "reconnectFrequencySeconds": 15, "tls": { "enabled": false, "certificateFilename": "ctsrvr.pem", "x509_authentication": { "enabled": false, "certificateFilename": "admin.pem", "privateKeyFilename": "admin.key" } }, "metadata": {}, "defaultIncludePrimaryKey": "never", "defaultTagChanges": "never", } ] }
"dbnotifyconnections.json"
properties summaryProperty | Description | Default | Type | Limits (inclusive) | ||||||
---|---|---|---|---|---|---|---|---|---|---|
directConnectionsToFairComMq | specifies the possible FairCom MQ brokers that can receive MQTT messages published from DB Notify. At least one FairCom MQ broker must be specified. | Required - No default value | array of objects | |||||||
| specifies a user-defined unique name for a broker integration | Required - No default value | string |
| ||||||
| specifies a unique broker host name or TCP/IP address | Required - No default value | string |
| ||||||
| specifies the TCP/IP port If defined, | Required if | int16 |
| ||||||
| specifies login name to FairCom MQ |
| string |
| ||||||
| specifies the login password to FairCom MQ |
| string |
| ||||||
| specifies the default value for when to include the primary key designation of fields in responses. This can be overridden by includePrimaryKey |
| string |
| ||||||
| specifies the default value for when to include the change status of fields in responses. This can be overridden by tagChanges |
| string |
| ||||||
| specifies FairCom MQ server name | Required if | string |
| ||||||
| specifies metadata primarily for the user interface to find integration information. |
| object | |||||||
| specifies the number of seconds that the server waits between attempts to reconnect to FairCom MQ |
| int32 |
| ||||||
| specifies Transport Layer Security settings for connecting to FairCom MQ |
| object | |||||||
| specifies the file name of the public server certificate file — such as, | Required - No default value | string | |||||||
| enables TLS if true |
| boolean |
| ||||||
| specifies x.509 settings to connect to Faircom MQ. |
| object | |||||||
| specifies the file name of the private server key file — such as | Required - No default value | string | |||||||
| enables x.509 authentication if true |
| boolean |
| ||||||
| specifies the file name of the private server key file — such as | Required - No default value | string | |||||||
loglevel | specifies the level of log messages for dbnotify.
A good practice is to start with NOTE: Error messages are always printed. |
| string |
|