<div dir="ltr">Ben,<br><br><span style="font-family: courier new,monospace;">setup_channel(Connection, Realm) -&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; Channel = amqp_connection:open_channel(Connection),</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; Access = #&#39;access.request&#39;{realm = Realm,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exclusive = false,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; passive = true,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active = true,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write = true,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read = true},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; #&#39;access.request_ok&#39;{ticket = Ticket} = amqp_channel:call(Channel, Access),</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; {Channel, Ticket}.</span><br style="font-family: courier new,monospace;">
<br>This is used in a few places, which pass Realm around, so they will have to be changed. I also use it with the internal API to create realms using Erlang, but of course I am not complaining about that changing.<br><br>
Regards,<br>Edwin<br><br><div class="gmail_quote">On Tue, Aug 5, 2008 at 11:58 AM, Ben Hood <span dir="ltr">&lt;<a href="mailto:0x6e6562@gmail.com">0x6e6562@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Edwin,<br>
<br>
On Tue, Aug 5, 2008 at 4:12 PM, Edwin Fine<br>
<div class="Ih2E3d">&lt;<a href="mailto:rabbitmq-discuss_efine@usa.net">rabbitmq-discuss_efine@usa.net</a>&gt; wrote:<br>
</div><div class="Ih2E3d">&gt; Ben,<br>
&gt;<br>
&gt; Um, does this mean that:<br>
&gt;<br>
&gt; In rabbitmqctl,<br>
&gt;<br>
&gt; &nbsp; add_realm &nbsp; &nbsp;&lt;VHostPath&gt; &lt;RealmName&gt;<br>
&gt; &nbsp; delete_realm &lt;VHostPath&gt; &lt;RealmName&gt;<br>
&gt; &nbsp; list_realms &nbsp;&lt;VHostPath&gt;<br>
&gt; &nbsp; set_permissions &nbsp;&lt;UserName&gt; &lt;VHostPath&gt; &lt;RealmName&gt; [&lt;Permission&gt; ...]<br>
&gt;<br>
&gt; will disappear?<br>
<br>
</div>Yes.<br>
<div class="Ih2E3d"><br>
&gt; Furthermore, does this mean that our code will have to remove all references<br>
&gt; to realms? Or are you leaving all that syntax in place but just making it a<br>
&gt; NOOP?<br>
<br>
</div>If you using an internal API, e.g. rabbitmqctl, then yes, we are<br>
removing all references to it.<br>
<br>
Internal APIs are always subject to change.<br>
<br>
If you are using the wire protocol, the access.request command and<br>
usage of tickets will become NOOPs.<br>
<br>
Also, although I can&#39;t say with any certainty, because it is pending a<br>
vote by the working group on 0-9 SP1, the fields *may* also be removed<br>
from the wire format.<br>
<br>
However, if you are using the Erlang client, this will be transparent to you.<br>
<br>
Just out of interest&#39;s sake, what functionality are you actually using<br>
wrt to realms?<br>
<br>
HTH,<br>
<font color="#888888"><br>
Ben<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>For every expert there is an equal and opposite expert - Arthur C. Clarke<br>
</div>