qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Ross <tr...@redhat.com>
Subject Re: Delete all the messages from a queue.
Date Tue, 01 Feb 2011 15:26:02 GMT
Sergey,

Are you using transactional sessions?

-Ted

On 02/01/2011 10:11 AM, Sergey_Zhemzhitsky@troika.ru 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<jonathan.robie@redhat.com>
> 01.02.2011 17:56
> Please respond to
> users@qpid.apache.org
>
>
> To
> users@qpid.apache.org
> cc
>
> Subject
> Re: Delete all the messages from a queue.
>
>
>
>
>
>
> On 02/01/2011 09:19 AM, Sergey_Zhemzhitsky@troika.ru 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:users-subscribe@qpid.apache.org
>
>
>


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


Mime
View raw message