[rabbitmq-discuss] Using ReplyTo

Tony Garnock-Jones tonyg at lshift.net
Thu Apr 15 21:15:20 BST 2010

Matthias Radestock wrote:
> Typically the replyTo field contains the name of the reply queue. And 
> you use that as the routing key of the reply message and send that 
> message to the default exchange.

To clarify, "default exchange" is AMQP jargon for the exchange with the
empty-string as its name.

  channel.basic_publish(exchange = "", routing_key = queue_name, ...)

The spec mandates that this exchange route directly to queues named the same as
the routing keys used. Whenever a queue is created, a binding for the queue is
automatically created on the default exchange.


More information about the rabbitmq-discuss mailing list