<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hi Isaias,<br>
<br>
<br>
AFAIK, there is no way to list the queues declared on the broker
directly from Java.<br>
<br>
But there is a way of getting the number of messages in a given queue
(provided that you know its name). Redeclare the Queue, setting only
its name and passive=true, and then inspect the
DeclareOk.getMessageCount() to get the number of messages.<br>
<br>
<br>
Rgds,<br>
Vlad.<br>
<br>
<br>
<br>
On 09/15/2010 01:19 PM, Isaías Espejo Badia wrote:
<blockquote
cite="mid:AANLkTi=2vuNqWZvAnWasFxEfUdA4U+bDhqc3mOs0+jHM@mail.gmail.com"
type="cite">
<div>Hello, </div>
<div><br>
</div>
<div>I am using the java client to rabbitmq and the queues work very
well </div>
<div>I have three queues. </div>
<div>I know that I can see this with the command "rabbitmqctl
list_queues" in the server but I need create a proccess in java that
check how many elements there are in each queue.</div>
<div><br>
</div>
<div>I am searching in the java client and I don´t have found any way
to do this</div>
<div>Does it exist any client java to use administration command?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Isaias</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rabbitmq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>
<a class="moz-txt-link-freetext" href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a>
</pre>
</blockquote>
</body>
</html>