Message Producer

The Messaging Producer is an object which can send text messages to a Queue or Topic destination in the built-in Message Broker. This version is backed by the full fledged messaging broker Apache ActiveMQ.

Version 3.x

Basic Usage

1
2
var producer = require('messaging/v3/producer');
producer.queue("queue1").send("Text Message");

Definition

Functions


Function Description Returns
queue() Returns an object representing a Message Queue Queue
topic() Returns an object representing a Message Topic Topic

Objects


Queue

Function Description Returns
send(message) Send a message to this Message Queue -

Topic

Function Description Returns
send(message) Send a message to this Message Topic -

Compatibility

Rhino Nashorn V8
βœ… βœ… βœ…
Edit