<div dir="ltr">Yes . That's indeed a great option.<div>But it still raises questions I dont understand. </div><div><br></div><div>usually I do the two rows </div><div><br></div><div>channel.queueDeclare(<font class="Apple-style-span" color="#FF0000"> [emptyStringForQueuename]</font>, bool,bool,bool... );</div>
<div>channel.queueBind(<font class="Apple-style-span" color="#FF0000">[emptyStringForQueuename]</font>,excName,RoutingKey);</div><div><br></div><div>1. how does the channel know which queue to bind. what if it has two queues with random name? </div>
<div><br></div><div>2. How will I add a new binding to a random named queue? </div><div>10x. </div><div><br></div><div><br><br><div class="gmail_quote">On Wed, Mar 30, 2011 at 9:07 AM, Steven Taylor <span dir="ltr"><<a href="mailto:taylste@gmail.com">taylste@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><div>"You should name queues in a way that makes sense in your application. If queues are transient or the name doesn't matter then you can have the broker assign random names by supplying an empty string for the queue name."</div>
<div> </div></div><div>neat. Didn't know about that. Perhaps place it in a "random" exchange so as not to polute the routing key namespace.</div><div> </div><div>-Steven<br><br></div><div class="gmail_quote">
<div><div></div><div class="h5">On 29 March 2011 15:50, Emile Joubert <span dir="ltr"><<a href="mailto:emile@rabbitmq.com" target="_blank">emile@rabbitmq.com</a>></span> wrote:<br>
</div></div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><div></div><div class="h5"><div>On 29/03/11 14:32, mysurf mail wrote:<br>
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
1. Is that design good? In places there used to be listeners<br>
transport for subscribing to data I will leave the jsonrpc solution<br>
and the listeners?<br>
</blockquote>
<br></div>
In a heterogeneous environment different components can communicate with each other via a broker, regardless of their address. If that is your design then it's good.<div><br>
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
2. what is the reccomended way to choose a name for the queue for<br>
each client<br>
</blockquote>
<br></div>
You should name queues in a way that makes sense in your application. If queues are transient or the name doesn't matter then you can have the broker assign random names by supplying an empty string for the queue name.<div>
<br>
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
3. When a client dies sudddenly (unexpected ) who will close his<br>
queue ?<br>
</blockquote>
<br></div>
You can set the queue to be auto-delete. When the last consumer disconnects the queue will then be deleted automatically.<br>
<br>
Regards<br>
<br>
Emile<br></div></div>
_______________________________________________<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="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div></div>