Matthias,<br><br><div class="gmail_quote">On Thu, Apr 24, 2008 at 3:49 PM, Matthias Radestock &lt;<a href="mailto:matthias@lshift.net">matthias@lshift.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

- Why is there the curious special-casing for the processing of the Args for a topic exchange?<br>
</blockquote><div><br>The special case was already in the declare method in rabbit_exchange.erl:60. Args for a topic exchange is set to a tuple: {sets:new(), Args}, while Args for other exchanges is passed through as a list. The code you posted won&#39;t work unless Args is a list in all exchange types.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
- You should be able to use AMQP&#39;s boolean type for the &quot;anycast&quot; argument, rather than 0 and 1. Also, take a look at lists:keysearch. With those two changes the code should simplify to this:<font color="#888888"><br>
</font></blockquote></div><br>When I ran some tests of checking for the anycast argument, it came up as a signedint. This may be due to the python library I used. I set anycast=True, and got a signedint in rabbit_exchange:route. I didn&#39;t check setting anycast=true in the java libs, I&#39;ll look into it. Otherwise the match would have to be {_Name, signedint, 1}, correct?<br>
<br>Kyle<br>