Example of the GET map function

In the following example, assume that the adapter is used in a GET function:
  • When the adapter is used retrieve all messages from a RabbitMQ queue queue1 on the RabbitMQ broker running on the same host on which the map runs. Messages are acknowledged as part of committing the source transaction. Logging is enabled, with verbose level and default log file m4rabbitmq.mtr created in the map directory:
    GET("RABBITMQ", "-H localhost -P 5672 -Q queue1 -RGM tx -QTY S -LSN 0 -TV")