> The attached example shows a simple query of a queue by name. Only the 
> message depth is printed but there a range of other stats and properties 
> in the response.

The list of stats and properties is e.g. written at 
http://qpid.apache.org/books/trunk/AMQP-Messaging-Broker-CPP-Book/html/ch02s03.html#QMFPythonConsoleTutorial-InvokingMethodsonanObject
 where a Python API is shown on several examples.


Kind regards,
Pavel


----- Original Message -----
From: "Gordon Sim" <g...@redhat.com>
To: users@qpid.apache.org
Sent: Thursday, May 19, 2011 4:47:22 PM
Subject: Re: Number of messages in a queue.

On 05/19/2011 02:51 PM, Phil Brown wrote:
> I am fairly new to qpid and trying to learn the ropes.
>
>> From what I understand, there is no way, through the C++ Messaging API, to
> get the number of messages in a queue.  How can this be done?  Is there any
> sample code?
>
> Any help would be greatly appreciated!!!

Querying and managing the broker is achieved by sending specially 
formatted map messages to a special address and then handling the 
response(s) if necessary.

The attached example shows a simple query of a queue by name. Only the 
message depth is printed but there a range of other stats and properties 
in the response.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscr...@qpid.apache.org

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscr...@qpid.apache.org

Reply via email to