Hi,

You can get number of messages on a queue by invoking
AMQSession#getQueueDepth(AMQDestination) like following

Session myJMSSession = ...
Desionation myJMSDestination = ..
long queueDepth =
((AMQSession)myJMSSession).getQueueDepth(((AMQDestination)myJMSDestination));

Pls, be aware that this method is internal implementation specific and
can be changed or removed in following versions of qpid JMS client.


Kind Regards,
Alex

On 2 December 2011 16:42, dmounessa <[email protected]> wrote:
> Is there a way to get Queue size from the JAVA Client?
>
> I want to get notified when I can start sending messages on the queue?
>
> Thanks
>
> --
> View this message in context: 
> http://apache-qpid-users.2158936.n2.nabble.com/Jave-Client-with-C-Broker-Messages-in-Queue-size-tp7055301p7055301.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:[email protected]
>
>

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to