<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 &quot;not_empty&quot; 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 &quot;unbind&quot; 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&nbsp;&quot;not_empty&quot; 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 &quot;unbind&quot; 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">&nbsp; 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 &quot;Presence Exchange&quot; Plugin<br>
<br>
2012/2/8 Liuzhuofu &lt;liuzhuofu@huawei.com&gt;:<br>
&gt; When I use RabbitMQ &quot;Presence Exchange&quot; Plugin, I found when a client<br>
&gt; (name:&quot;Client_1&quot;) bind to the x-presence exchange, the queue<br>
&gt; (name:&quot;monitor_queue&quot;) with &quot;&quot; route key can get a &quot;bind&quot; msg, but if I<br>
&gt; didn't subscribe the queue(&quot;Client_1&quot;) with a process, when the &quot;client_1&quot;<br>
&gt; coredown, the &quot;monitor_queue&quot; can not get a &quot;unbind&quot; msg. If I subcribe the<br>
&gt; queue(&quot;client_1&quot;), when &quot;client_1&quot; coredown or exit, the monitor_queue can<br>
&gt; got a &quot;unbind&quot; msg.<br>
&gt;<br>
&gt; My question is: I have bind the queue(&quot;client_1&quot;) to the<br>
&gt; exchange(&quot;monitor&quot;), why can not got the &quot;unbind&quot; msg when queue(&quot;client_1&quot;)<br>
&gt; not be subscribed, but can got the &quot;unbind&quot; msg when queue(&quot;client_1&quot;) be<br>
&gt; subscribed.<br>
<br>
Take a look at the readme:<br>
https://github.com/tonyg/presence-exchange#readme<br>
<br>
&quot;bindings made with the empty string &quot;&quot; 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.&quot;<br>
<br>
Marek</font><br>
</div>
</div>
</div>
</body>
</html>