[rabbitmq-discuss] Java Client and Admin
Michael Oullion
michael.oullion at norbert-dentressangle.com
Fri Sep 13 16:58:17 BST 2013
Hello Michael,
thanks for your answer.
I know that I can do it with the HTTP API but that's I want to know is :
if I can do this with the RabbitMQ Java Client (
http://www.rabbitmq.com/java-client.html)
or this client is only for consumer/producer and I must use the HTTP API.
Regards,
*
________________________________________________________________
*
*Michaël OULLION*
*Architecte JAVA*
**
*ND Informatique*
**Adresse (1208 route des Pierrelles B.P. 98 BEAUSEMBLANT - 26240
Beausemblant - FRANCE)
Tel. +33 (0)4 75 23 68 07
Visit our web site at www.norbert-dentressangle.com
2013/9/13 Michael Klishin <mklishin at gopivotal.com>
> Michael Oullion:
>
> > We have two questions about the Java API :
> > • We want to check if a specific policy exist and, if necessary
> create it, and assign it to the right queue.
> > Is there a way to do this with the Java client ?
>
> RabbitMQ Java client is AMQP 0-9-1, HTTP API currently does not have a
> Java client
> (at least the official one).
>
> >
> > • 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.
> > Is it normal? (queue mirrored on 2 node, queue persistent and messages
> persistent)
>
> Yes, because then the node that your consumer is connected to has to
> request messages
> from the master. Intra-cluster communication takes some time.
>
> > If yes, we want to get the master node of the queue to connect on it.
> > Is there a way to get this information with the java client api?
>
> HTTP API provides the information you are looking for.
>
> /api/queues/{vhost}/{queue} should contain "node" key that indicates
> which node is master.
>
> MK
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130913/309c17a5/attachment.htm>
More information about the rabbitmq-discuss
mailing list