[rabbitmq-discuss] Doubts in bindings
Alvaro Videla
videlalvaro at gmail.com
Tue Feb 25 09:41:34 GMT 2014
Hi,
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.
Regards,
Alvaro
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
>> ...done.
>
> Extra arguments. See http://www.rabbitmq.com/amqp-0-9-1-quickref.html#queue.bind.
>
> MK
>
> Software Engineer, Pivotal/RabbitMQ
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss
mailing list