Solace Micro-Integration Manager Example
Solace Micro-Integration Manager is distributed with a few examples (sample configurations and shell scripts), allowing you to start and run Micro-Integration Manager together with different self-managed Micro-Integrations with minimum effort.
This section provides step-by-step instructions on how to run the Micro-Integration for IBM MQ example that is provided in the zip archive in the Micro-Integration Manager package. You can use this section as a model to apply similar instructions for any self-managed Micro-Integration (after downloading the configuration and executable files for these self-managed Micro-Integrations).
For detailed information about the samples folder and examples, see Starting Micro-Integration Manager.
Starting Micro-Integration Manager
The shell script to start Micro-Integration Manager allows you to initiate a Micro-Integration Manager instance and pre-configure it with essential parameters. For detailed information, see Starting Micro-Integration Manager With a Shell Script.
Encrypting Values for Cloud Configurations
To create encrypted values for cloud configuration files, you must start Micro-Integration 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 Self-Managed Micro-Integrations
In addition to the Micro-Integration Manager configurations, the samples/micro-integrations folder contains a few configuration examples to start self-managed Micro-Integration instances (with the script to do that). Therefore, all commands that you need are in the samples/micro-integrations folder.
Examples of configuration parameters are available for:
-
IBM MQ
-
TIBCO EMS
The samples/micro-integrations folder contains a few nested subdirectories:
-
applications—must contain the JAR files for your Micro-Integration (not included). You must copy the Micro-Integration's JAR files into this folder. -
libs—contains some third-party libraries that are required for any Micro-Integration to run. If necessary, you must fill these out before starting your Micro-Integration(s). -
micro-integrations-configs—contains operator configurations that are required to start up the Micro-Integration. -
security—contains a pre-generated keystore calleddemo.jks. This must not be used for any purpose other than demonstration.
In the samples/micro-integrations folder, there is a micro-integration.sh script that allows you to start up the Micro-Integration. This script is the same as the one distributed with any Micro-Integration, so all the required parameters are the same.
Prerequisites for Self-Managed Micro-Integration Startup
Before you run your Micro-Integration with Micro-Integration Manager, make sure that the prerequisites listed in the following sections are met.
Prerequisites for the Solace Software Event Broker:
-
The software event broker must be running on port
55555with default parameters. -
A queue with the name
Solace/Queue/0must 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.0must be created.
Prerequisites for Configuration:
In the samples/micro-integrations/micro-integrations-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 Micro-Integrations:
Starting the Micro-Integration for IBM MQ with Default Configuration
The micro-integration.sh script has a few additional properties, allowing you to configure your Micro-Integration with various parameters dynamically:
$> ./micro-integration.sh \
-c ./micro-integrations-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 Micro-Integration for IBM MQ with one workflow enabled. The Micro-Integration for IBM MQ is shown in Micro-Integration Manager:
-
running on host
10.0.0.100and port9500(parameters-cm,-cmh, andcmp) . -
specifying the back management port and host as
9201(to make calls from Micro-Integration Manager to the Micro-Integration for IBM MQ) (parameter-mp). -
specifying the Micro-Integration for IBM MQ host and port as
9101(parameters-Hand-cp).
For more information, see the (parameter -h) help.