Example of the PUT map function
In the following example, assume that the adapter is used in a PUT function:
- When adapter is used to write a message to an exchange with the specified
routing key on the RabbitMQ broker running on the same host on which the map
runs. In this case, the built-in amq.direct exchange is
used with the routing key queue1 configured in the broker
to route the message to the queue with the same name. The
input_data represents the message produced for the
exchange, and this is a reference to a type from another card in the map. The
log file rabbitmq.log is created in the directory in
which the map runs, it is created in append mode, and only messages of the error
severity are
logged:
PUT("RABBITMQ", "H localhost -P 5672 -E amq.direct -RK queue1 -TE+ rabbitmq.log", input_data)