Active MQ target
Overview#
The Active MQ target publishes data to ActiveMQ.
Note: Apache ActiveMQ is an open-source Java-based message broker which enables communcation between applications. For more information, refer to ActiveMQ.
How to use the Active MQ target#
To use the Active MQ target, pass an object with the parameters you require, from the schema table listed below. Also refer to the code sample listed below.
activemq_target schema#
Pass an object with the parameters you require from the table below.
| Property | Type | Description | Default Value | Required |
|---|---|---|---|---|
_name | String | Enter activemq_target. | Required | |
_sequenceno | Integer | Enter a number that defines the task’s order in the sequence of tasks to execute. | Required | |
_actualparams | Object | Pass an object that contains parameters you want to add as key-value pairs, such as userName: “<userName>”. | Required | |
_actualparams.activemq.username | String | Enter your Active MQ account username. If you do not enter a value, the default value for activemq.username in the Datasources config file is used. | {{config:activemq.username}} | Optional |
_actualparams.activemq.password | String | Enter your Active MQ account password. If you do not enter a value, the default value for activemq.password in the Datasources config file is used. | {{config:activemq.password}} | Optional |
_actualparams.activemq.url | String | Enter the Active MQ host URL to connect to. If you do not enter a value, the default value for activemq.url in the Datasources config file is used. | {{config:activemq.url}} | Optional |
_actualparams.topic | String | Enter the name of the topic you want to publish the message to. | Required | |
_actualparams.message | Object | Enter the message you want to publish to the Active MQ topic. | Required |
Code example#
Refer to the code sample below.
… { "name": "activemq_target", "_sequenceno": 1, "_actualparams": { "activemq": { "username": "<Username>", "password": "<Password>", "url": "<activemq_host>" }, "topic": "<activemq_Topic>", "message": {} } } …