PubSub+ Connector Manager Example
PubSub+ Connector Manager is distributed with a few examples (sample configurations and shell scripts), allowing you to start and run the Connector Manager together with different Self-Managed Connectors with minimum effort.
This section provides step-by-step instructions on how to run the Connector for IBM MQ example that is provided in the zip archive in the Connector Manager's package. You can use this section as a model to apply similar instructions for any Self-Managed Connector (after downloading the configuration and executable files for these Self-Managed Connectors).
For detailed information about the samples folder and examples, see Starting the Connector Manager.
Starting the Connector Manager
The shell script to start the Connector Manager allows you to initiate a Connector Manager instance and pre-configure it with essential parameters. For detailed information, see Starting the Connector Manager with a Shell Script.
Encrypting Values for Cloud Configurations
To create encrypted values for cloud configuration files, you must start the Connector Manager in local
mode (completely isolated from any production environment with the keystore file that is generated for this purpose) with enabled encryption, or as a localhost. For detailed information, see Encrypting Values for Cloud Configurations.
Starting PubSub+ Self-Managed Connectors
In addition to the Connector Manager configurations, the samples/connectors
folder contains a few configuration examples to start Self-Managed Connector instances (with the script to do that). Therefore, all commands that you need are in the samples/connectors
folder.
Currently, the examples of configuration parameters for Self-Managed Connectors are available for:
-
IBM MQ
-
TIBCO EMS
The samples/connectors
folder contains a few nested subdirectories:
-
applications
— contains all JAR files with Self-Managed Connectors (not included). You must have the JAR files of the Self-Managed Connectors copied into this folder. -
libs
— contains some third-party libraries that are required for any Self-Managed Connector to run. If necessary, you must fill these out before starting your Self-Managed Connector(s). -
connectors-configs
— contains operator configurations that are required to start up the Self-Managed Connector. -
security
— contains a pre-generated keystore calleddemo.jks
. This must not be used for any purpose other than demonstration.
In the samples/connectors
folder, there is a connector.sh
script that allows you to start up the Self-Managed Connector. This script is the same as the one distributed with any Self-Managed Connector, so all the required parameters are the same.
Prerequisites for PubSub+ Self-Managed Connector Startup
Before running your Self-Managed Connector with the Connector Manager, make sure that a few prerequisites are met.
Prerequisites for the PubSub+ Software Event Broker:
-
The software event broker must be running on port
55555
with default parameters. -
A queue with the name
Solace/Queue/0
must be created.
Prerequisites for the IBM MQ Broker:
-
The IBM MQ broker must be running with default parameters. Credentials are:
-
Username:
admin
-
Password:
passw0rd
-
Queue Manager:
QM1
-
-
A queue with the name
DEV.QUEUE.0
must be created.
Prerequisites for Configuration:
In the samples/connectors/connectors-configs/ibmmq
folder in the application.yml
file, the encrypt.keyStore.location
variable must be modified to include the absolute path.
This is a full list of the parameters that you can use with shell script for Self-Managed Connectors:
Starting the Connector for IBM MQ with Default Configuration
The connector.sh
script has a few additional properties, allowing you to configure your Self-Managed Connector with various parameters dynamically:
$> ./connector.sh \ -c ./connectors-configs/ibmmq \ -j ./applications/pubsubplus-connector-ibmmq-1.2.1.jar \ -cm \ -cmh 10.0.0.100 \ -cmp 9500 \ -H 10.0.0.100 \ --port 9101 \ -mp 9201
This command starts the Connector for IBM MQ with one workflow enabled. The Connector for IBM MQ is shown in the Connector Manager:
-
running on host
10.0.0.100
and port9500
(parameters-cm
,-cmh
, andcmp
) . -
specifying the back management port and host as
9201
(to make calls from the Connector Manager to the Connector for IBM MQ) (parameter-mp
). -
specifying the Connector for IBM MQ host and port as
9101
(parameters-H
and-cp
).
For more information, see the (parameter -h
) help.