Hi,<br>
<br>
On second thought, I don't think that will work.<br>
<br>
If I first do the binding, the client will likely receive data he didn't
intend before being able to remove the binding.<br>
<br>
Since consuming messages off of the queue is happening asynchronously,
while the bind/unbind happens on a different connection I think the
above is quite possible.<br>
<br>
Thanks<br>
<br>
Roaan<br><br><br><div class="gmail_quote">On 6 May 2010 13:20, Emile Joubert <span dir="ltr"><<a href="mailto:emile@rabbitmq.com">emile@rabbitmq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hi Roaan,<br>
<br>
The broker is required to raise a connection exception if an unbind fails, so you are describing expected behaviour.<br>
<br>
Duplicate bindings will be ignored, so you can prevent the exception by performing a (possibly duplicate) binding immediately prior to unbind.<br>
<br>
The client is expected to keep track of bindings under normal circumstances though. I assume this is impossible in your case - can you explain why?<br>
<br>
-Emile<br>
<br>
Roaan Vos wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
Hi,<br>
<br>
<br>
I currently allow clients to “bind” and “unbind” to various topics as needed using the .net client.<br>
<br>
However, when the client “unbinds” without first having done a bind, RabbitMQ throws an exception and the connection seems to disappear.<br>
<br>
Is there a way for it to keep the connection (or not throw an exception)?<br>
<br>
<br>
Thanks<br>
<br>
<br>
Roaan<br>
<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote>
<br>
<br>
</blockquote></div><br>