<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font class="Apple-style-span" size="3">Hi, Marek:<br>
<span class="Apple-tab-span" style="white-space:pre"></span>I think you didn't catch my point.<br>
<span class="Apple-tab-span" style="white-space:pre"></span>My question is : If a queue bind to a 'x-presence' exchange with a "not_empty" key and
<font class="Apple-style-span" color="#ff0000">it hasn't bean subscribe by a process</font>, when the vm of queue exit , the exchange can not receive a "unbind" message for the queue.</font>
<div><font class="Apple-style-span" size="3"><span class="Apple-tab-span" style="white-space:pre"></span>But if the queue bind to 'x-presence' exchange with a "not_empty" key and
<font class="Apple-style-span" color="#ff0000">it has subscribe by a process</font>, when the vm of queue exit, the exchange can receive a "unbind" message for the queue.</font></div>
<div><font class="Apple-style-span" size="3"><br>
</font></div>
<div><font class="Apple-style-span" size="3">Regards,</font></div>
<div><font class="Apple-style-span" size="3"> David</font></div>
<div>
<div><font class="Apple-style-span" size="3"><br>
<br>
________________________________________<br>
发件人: Marek Majkowski [majek04@gmail.com]<br>
发送时间: 2012年2月8日 20:17<br>
到: Liuzhuofu<br>
Cc: tonyg@ccs.neu.edu; rabbitmq-discuss@lists.rabbitmq.com<br>
主题: Re: [rabbitmq-discuss] A question about RabbitMQ "Presence Exchange" Plugin<br>
<br>
2012/2/8 Liuzhuofu <liuzhuofu@huawei.com>:<br>
> When I use RabbitMQ "Presence Exchange" Plugin, I found when a client<br>
> (name:"Client_1") bind to the x-presence exchange, the queue<br>
> (name:"monitor_queue") with "" route key can get a "bind" msg, but if I<br>
> didn't subscribe the queue("Client_1") with a process, when the "client_1"<br>
> coredown, the "monitor_queue" can not get a "unbind" msg. If I subcribe the<br>
> queue("client_1"), when "client_1" coredown or exit, the monitor_queue can<br>
> got a "unbind" msg.<br>
><br>
> My question is: I have bind the queue("client_1") to the<br>
> exchange("monitor"), why can not got the "unbind" msg when queue("client_1")<br>
> not be subscribed, but can got the "unbind" msg when queue("client_1") be<br>
> subscribed.<br>
<br>
Take a look at the readme:<br>
https://github.com/tonyg/presence-exchange#readme<br>
<br>
"bindings made with the empty string "" as their binding<br>
key, which receive presence messages, but do not<br>
produce them; and bindings made with any other binding key,<br>
which produce presence messages but do not receive them."<br>
<br>
Marek</font><br>
</div>
</div>
</div>
</body>
</html>