<div dir="ltr">Hello Michael, <div>thanks for your answer.</div><div><br></div><div>I know that I can do it with the HTTP API but that's I want to know is :</div><div>if I can do this with the RabbitMQ Java Client (<a href="http://www.rabbitmq.com/java-client.html">http://www.rabbitmq.com/java-client.html</a>)</div>
<div>or this client is only for consumer/producer and I must use the HTTP API.</div><div><br></div><div>Regards,</div></div><div class="gmail_extra"><br clear="all"><div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><strong><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:12pt;display:inline!important">
<strong><span style="font-size:8pt;font-family:Verdana;color:rgb(95,95,95)">________________________________________________________________</span></strong></p></strong></span><div><div><span style="font-size:x-small"><b><font color="#666666">Michaël OULLION</font></b></span></div>
<div><font color="#666666" face="verdana, sans-serif" size="1"><i>Architecte JAVA</i></font></div><div><b><font color="#FF0000"><font face="verdana, sans-serif"><img src="http://intranet2008.norbert-dentressangle.com/Intranet/Portail.nsf/3739e8870e42c9a5c12572dd004ebe9c/8cc1800a2b414d59c12573c6003af585/Contenu/0.8A6?OpenElement&FieldElemFormat=gif" width="96" height="26"></font></font></b></div>
<div><span style="font-family:verdana,sans-serif"><font color="#FF0000"><b>ND Informatique</b></font></span></div><div><span style="font-family:verdana,sans-serif"><font color="#FF0000"><b></b></font></span><span style="color:rgb(102,102,102);font-family:verdana,sans-serif;font-size:x-small">Adresse (1208 route des Pierrelles B.P. 98 BEAUSEMBLANT - 26240 Beausemblant - FRANCE)</span></div>
<div><font face="verdana, sans-serif"><span style="font-size:x-small"><font color="#666666">Tel. +33 (0)4 75 23 68 07</font></span></font></div><div><font face="verdana, sans-serif"><span style="font-size:x-small"><font color="#666666">Visit our web site at <a href="http://www.norbert-dentressangle.com/" target="_blank">www.norbert-dentressangle.com</a></font></span></font></div>
</div></div><div><font face="verdana, sans-serif"><span style="font-size:x-small"><br></span></font></div></div>
<br><br><div class="gmail_quote">2013/9/13 Michael Klishin <span dir="ltr"><<a href="mailto:mklishin@gopivotal.com" target="_blank">mklishin@gopivotal.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Michael Oullion:<br>
<br>
> We have two questions about the Java API :<br>
> • We want to check if a specific policy exist and, if necessary create it, and assign it to the right queue.<br>
> Is there a way to do this with the Java client ?<br>
<br>
RabbitMQ Java client is AMQP 0-9-1, HTTP API currently does not have a Java client<br>
(at least the official one).<br>
<br>
><br>
> • We observe , with a mirrored queue, that if we are not connected to the Master Node ( aka the node which hosted the queue), We have less performance on consuming messages.<br>
> Is it normal? (queue mirrored on 2 node, queue persistent and messages persistent)<br>
<br>
Yes, because then the node that your consumer is connected to has to request messages<br>
from the master. Intra-cluster communication takes some time.<br>
<br>
> If yes, we want to get the master node of the queue to connect on it.<br>
> Is there a way to get this information with the java client api?<br>
<br>
HTTP API provides the information you are looking for.<br>
<br>
/api/queues/{vhost}/{queue} should contain "node" key that indicates<br>
which node is master.<br>
<span class="HOEnZb"><font color="#888888"><br>
MK<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>