User Tools

Site Tools


This is an old revision of the document!



The RabbitCaller SIB Caller puts messages on RabbitMQ queues.


  • Caller triggered by mqtt message
    • format input
    • get RabbitMQ connection
    • send message to queues configured in custom file

Custom configuration

var custom = {
    _id: "rabbitSample:1",
    _name: "SIB RabbitMQ Caller Sample",
    loggerCfg: {
        dest: {
            file: false,
            console: true,
            mqtt: true
    inputFormat: (topic, msg, cb)=>{
    rabbitmq: "amqp://localhost",
    q: [
        {path: "path/to/queue", durable: true, archive: "path/to/queue/archive"}
    mqtt: "mqtt://localhost",
    topic: "SIB/Samples/RabbitCaller"
module.exports = custom;
  • _id: The unique ID of this service
  • _name: A plaintext description of this service
  • inputFormat(topic, msg, cb): The method that is run on service activation. The original message is passed as the argument and the return value from this method must be a JSON formatted message conforming to the SIB message standard.
  • rabbitmq: The RabbitMQ connection string
  • q: Definitions of the queues that should be consumed by the listener. Each queue definition should contain:
    • path: The name of the queue
    • archive: The name of the archive queue. Default is path + “/archive”
    • durable: Set to true if the queue should be durable. If false the queue will be removed when the RabbitMQ is restarted. Default is true.
  • loggerCfg: A JSON Object defining what logger actions should be active for this service (see Logger Configuration
  • mqtt: The MQTT connection string for the internal MQTT transport
  • topic: The MQTT topic to subscribe to on the internal MQTT transport
sib/callers/rabbitcaller.1552398571.txt.gz · Last modified: 2019/03/12 13:49 by ozzy