Skip to main content
Version: v5.1

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.

PropertyTypeDescriptionDefault ValueRequired
_nameStringEnter activemq_target.Required
_sequencenoIntegerEnter a number that defines the task’s order in the sequence of tasks to execute.Required
_actualparamsObjectPass an object that contains parameters you want to add as key-value pairs, such as userName: “<userName>”.Required
_actualparams.activemq.usernameStringEnter 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.passwordStringEnter 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.urlStringEnter 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.topicStringEnter the name of the topic you want to publish the message to.Required
_actualparams.messageObjectEnter 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": {}      }    }