[rabbitmq-discuss] rpc Tutorials why the server queue no need to binding

kevin wmywipured at gmail.com
Fri Jan 4 01:36:32 GMT 2013


thanks:)
 

在 2013年1月3日星期四UTC+8下午7时11分20秒,Alvaro Videla写道:

> Hi, 
>
> Queues are always bound by default to the "unnamed" exchange and the 
> routing key is the queue name. That's why you can publish messages to the 
> exchange named "", using "rpc_queue" as routing key.
>
> Regards,
>
> Alvaro
>
>
> On Thu, Jan 3, 2013 at 7:57 AM, kevin <wmywi... at gmail.com <javascript:>>wrote:
>
>> Hi,
>> I am a newer for rabbitMQ,when i read the 
>> *Tutorials* <http://www.rabbitmq.com/getstarted.html> 6 rpc, i notice 
>> that client publish a message :channel.basicPublish("", "rpc_queue", 
>> props, message.getBytes());
>> 1.  i check in the sdk,the second parameter is routing key,but 
>> explaination show: 
>> "The request is sent to an rpc_queue queue" ,it is correct? i think it 
>> will be sent to any queue?
>>  
>>  2. when the server receive this message ,why no need to binding?because 
>> it use default exchange?
>>  
>> anyone know the answer please kindly reply me as soon,thanks.
>>  
>>  
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq... at lists.rabbitmq.com <javascript:>
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130103/089c65ad/attachment.htm>


More information about the rabbitmq-discuss mailing list