<div dir="ltr">hi, <div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Not fully understanding yet. </span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">You wrote : </span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">The RPC servers that serve requests for different applications must be<br>
listening on different work queues. You must ensure that RPC clients use<br>a routing key that matches the server queue and are different for each<br>application.</span><br><br></div><div>and also you wrote in the last mail that I Wouldn't need to give each one a different routing key ( <span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 14px; ">not specifically to support multiple clients in answer to my second question.</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 14px; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 14px; ">So, in brief. Should i give the same routing key or shouldnt i? </span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 14px; ">can each application run with the same routing key and queue and all get their own answer?</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 14px; ">Can you elaborate on working with multiple client and rpc ? </span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 14px; "><br>
</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 14px; ">Thank you.</span></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; font-size: 15px;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; font-size: 15px;"><br></span></font></div><div><br></div><div><br><div class="gmail_quote">
On Wed, Jul 13, 2011 at 5:23 PM, Emile Joubert <span dir="ltr"><<a href="mailto:emile@rabbitmq.com">emile@rabbitmq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<div class="im"><br>
On 13/07/11 14:28, mysurf mail wrote:<br>
><br>
><br>
> ---------- Forwarded message ----------<br>
</div><div class="im">> From: *mysurf mail* <<a href="mailto:stammailbox@gmail.com">stammailbox@gmail.com</a> <mailto:<a href="mailto:stammailbox@gmail.com">stammailbox@gmail.com</a>>><br>
> Date: Wed, Jul 13, 2011 at 4:27 PM<br>
> Subject: Re: [rabbitmq-discuss] a few json rpc questions<br>
</div><div class="im">> To: Emile Joubert <<a href="mailto:emile@rabbitmq.com">emile@rabbitmq.com</a> <mailto:<a href="mailto:emile@rabbitmq.com">emile@rabbitmq.com</a>>><br>
><br>
><br>
> Hi Emile,<br>
><br>
> Thanks for the assistance.<br>
><br>
> Though I have read the tutorial in your site, it looks like I did not<br>
> fully understand the rpc for multiple clients' mechanism.<br>
<br>
</div>The RPC classes that you are using are designed to support multiple clients.<br>
<br>
I would suggest that you get RPC working reliably with a single client<br>
first. The problem you describe (sometimes the application gets stuck)<br>
may not relate to the presence of multiple clients at all.<br>
<br>
The management plugin (<a href="http://www.rabbitmq.com/management.html" target="_blank">http://www.rabbitmq.com/management.html</a>) or the<br>
rabbitmqctl utility can be used to confirm queue sizes if you believe<br>
the problem is a messaging one.<br>
<div class="im"><br>
<br>
> I have put a routing key in the server and all the clients (same one)<br>
> and I thought it would make the server handle all the requests.<br>
><br>
> 1. Is there any way to use the rpc like that for multiple clients?<br>
<br>
</div>Yes, as previously stated.<br>
<div class="im"><br>
> 2. Would I need to give each one a different routing key?<br>
<br>
</div>No, not specifically to support multiple clients.<br>
<div class="im"><br>
> 3. Would I need to use different server threads for each client?<br>
<br>
</div>Threading is not a relevant issue here.<br>
<font color="#888888"><br>
<br>
<br>
<br>
-Emile<br>
</font></blockquote></div><br></div></div>