AMQProducerService
Classname: be.securit.trustbuilder.service.AMQProducerService
This service (from here on referred to as producer) is used for sending a message with a certain topic to an exchange, which will deliver it to the consumer(s) (configured by AMQProducerServices) listening to that topic. The delivering and handling of the message is done asynchronously.
Properties
Username: Username for accessing the queuingserver.
Password: Password for accessing the queuingserver.
Host: Host of the queuingserver this producer will send messages to.
Port: Port of the queuingserver this producer will send messages to.
Exchange: The exchange this producer will send messages to.
Topics: The topics this producer is allowed to send messages with.
Functions
send(message, topic): Send a message; message can be any JavaScript object, topic must be a String. Returns an object containing a status key and a message key. Below you can find the different possible status values and corresponding information:
0: OK.
1: This producer is not allowed to send messages with this topic.
2: Internal error.