[rabbitmq-discuss] Doubts in bindings
videlalvaro at gmail.com
Tue Feb 25 09:41:34 GMT 2014
I think the OP is asking about the first line of the output:
" exchange q1 queue q1  ----> what is this ?"
That's the default or "anon" exchange. Every queue is automatically
bound to that exchange using the queue name as routing key.
So you could publish a message to a queue like this:
$channel->basic_publish($msg, "", $queue_name);
The empty string there is the name of the anon exchange, that's why
the output of list_bindings shows a blank where the exchange name
should have appeared.
On Tue, Feb 25, 2014 at 9:04 AM, Michael Klishin <mklishin at gopivotal.com> wrote:
> On 25 Feb 2014, at 11:57, PONMUTHU M <ponmuthu at omnesysindia.com> wrote:
>> Listing bindings ...
>> exchange q1 queue q1  ----> what is this ?
>> *t1 exchange q1 queue key * ----> This is fine
> Extra arguments. See http://www.rabbitmq.com/amqp-0-9-1-quickref.html#queue.bind.
> Software Engineer, Pivotal/RabbitMQ
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
More information about the rabbitmq-discuss