Home > amqp-consume > amqp-consume -r

amqp-consume(1) -r
Consume messages from a queue on an AMQP server
-r, --routing-key=routing key
    The routing key for binding. If omitted, an empty routing key is assumed.

Examples

Consume messages from an existing queue “myqueue”, and output the message bodies on standard output via cat:
$ amqp-publish -q myqueue cat
Bind a new exclusive queue to an exchange “myexch”, and send each message body to the script myscript, automatically acknowledging them on the server:
$ amqp-consume -A -e myexch ./myscript

Tips or Questions?


Powered by ExplainShell