Skip to content

Latest commit

 

History

History
92 lines (65 loc) · 3.88 KB

File metadata and controls

92 lines (65 loc) · 3.88 KB
description
This page contains the technical details of the Solace endpoint plugin

Solace

{% hint style="warning" %} This feature requires Gravitee's Enterprise Edition. {% endhint %}

Overview

Use this endpoint to publish and/or subscribe messages to a Solace broker.

{% hint style="info" %} Only SMF protocol is supported. {% endhint %}

Compatibility matrix

Plugin version APIM version
1.x and up 4.x or higher

Endpoint identifier

To use this plugin, declare the following solace identifier while configuring your API endpoints.

Endpoint configuration

General configuration

Endpoint-level configuration

AttributesDefaultMandatoryDescription
urlN/AYesDefine the URL of the Solace broker. Should begin with either tcp:// or tcps:// for SMF protocol.
vpnNameN/AYesVirtual event broker to target

Shared Configuration

Security

Security options are available under security attribute.

Authentication

Available under security.auth:

AttributesDefaultMandatoryDescription
usernameN/ANoThe username to use for the authentication
passwordN/ANoThe password to use for the authentication

Consumer configuration

AttributesDefaultMandatoryDescription
enabledfalseNoEnable or disable the consumer capability
topicsN/AYesRefers to a list of UTF-8 strings to subscribe to

Producer configuration

AttributesDefaultMandatoryDescription
enabledfalseNoEnable or disable the producer capability
topicsN/AYesRefers to a list of UTF-8 strings used to publish incoming messages

Examples

The example below shows a full Solace endpoint configuration:

{
    "name": "default",
    "type": "solace",
    "weight": 1,
    "inheritConfiguration": false,
    "configuration": {
        "url": "tcp://localhost:55554",
        "vpnName": "default"
    },
    "sharedConfigurationOverride": {
        "consumer" : {
            "enabled": true,
            "topics": ["topic/subscribe"]
        },
        "producer" : {
            "enabled": true,
            "topics": ["topic/publish"]
        },
        "security" : {
            "auth": {
                "username": "user",
                "password": "password"
            }
        }
    }
}