Sergey,

Are you using transactional sessions?

-Ted

On 02/01/2011 10:11 AM, [email protected] wrote:
Hi Jonathan,

I have tried all the ways to get a valid number of messages but without
success.
qpid-stat and qpid-tool return the same number of messages that is not 0.
If I try to browse the queue by means of HermesJMS there are no messages
in the queue.


Best Regards,
Sergey Zhemzhitsky




Jonathan Robie<[email protected]>
01.02.2011 17:56
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: Delete all the messages from a queue.






On 02/01/2011 09:19 AM, [email protected] wrote:
Well, queue seems to be empty, because I can't read a message from it.

Does anybody know how make qpid-tool and qpid-stat return an appropriate
information?
1. qpid-stat -q gives statistics for a queue

2. In qpid-tool, first do a 'list queue' to get the OID of the queue,
then do a 'show<OID>'. The property 'msgDepth' tells you how many
messages are on the queue. See screen output below my signature.

Jonathan



qpid: list queue
Object Summary:
      ID   Created   Destroyed  Index
========================================================================
      123  14:33:09  - 135.qmfc-v2-hb-localhost.localdomain.16162.1
      124  14:33:09  -          135.qmfc-v2-localhost.localdomain.16162.1
      125  14:33:09  - 135.qmfc-v2-ui-localhost.localdomain.16162.1
      126  14:33:09  -          135.reply-localhost.localdomain.16162.1
      127  14:33:09  -          135.topic-localhost.localdomain.16162.1



qpid: show 123
Object of type:
org.apache.qpid.broker:queue:_data(3a30c319-5ef2-f211-ba1f-4900d5f75435)
      Attribute              123
      =================================================================
      vhostRef               135
      name                   qmfc-v2-hb-localhost.localdomain.16162.1
      durable                False
      autoDelete             True
      exclusive              True
      arguments              {u'qpid.policy_type': u'ring'}
      altExchange            162
      msgTotalEnqueues       0
      msgTotalDequeues       0
      msgTxnEnqueues         0
      msgTxnDequeues         0
      msgPersistEnqueues     0
      msgPersistDequeues     0
      msgDepth               0


---------------------------------------------------------------------
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