Thanks that seems to do the trick. Any idea how I could do it
programatically . The Programming in APACHE QPID does not have any
information regarding purge in C++ . Any suggestions ?


On Wed, Aug 28, 2013 at 3:32 PM, Chuck Rolke <cro...@redhat.com> wrote:

> OK, how do you do it? Using qpid-tool you can:
>
> 1. connect to host
>
> qpid-tool localhost:5672
> qpid:
>
> 2. wait while qpid-tool loads everything
>    then list queues:
>
> qpid: list queue
> Object Summary:
>     ID   Created   Destroyed  Index
>
> ================================================================================
>     128  21:24:47  -
>  org.apache.qpid.broker:queue:topic-fjeld.1940.1
>     124  21:24:47  -
>  org.apache.qpid.broker:queue:qmfc-v2-fjeld.1940.1
>     125  21:24:47  -
>  org.apache.qpid.broker:queue:qmfc-v2-hb-fjeld.1940.1
>     126  21:24:47  -
>  org.apache.qpid.broker:queue:qmfc-v2-ui-fjeld.1940.1
>     127  21:24:47  -
>  org.apache.qpid.broker:queue:reply-fjeld.1940.1
>
> 3. Issue a purge command to one of the queues. Give it a request=0 and an
> empty filter={}
>
> qpid: call 128 purge 0 {}
> qpid: OK (0) - {}
>
> You can get the management method list for any object class by using the
> 'schema' command:
>
> qpid: schema queue
>
> -Chuck
>
>
> ----- Original Message -----
> > From: "Chuck Rolke" <cro...@redhat.com>
> > To: users@qpid.apache.org
> > Sent: Wednesday, August 28, 2013 5:19:01 PM
> > Subject: Re: Clearing up queues in C++
> >
> > Queues have a purge management method that you can call from a command
> line
> > utility or from within your code.
> >
> >   Method: purge
> >     Argument  Type         Direction  Unit  Description
> >
> ======================================================================================================
> >     request   uint32       I                0 for all messages or n>0
> for n
> >     messages
> >     filter    field-table  I                if specified, purge only
> those
> >     messages matching this filter
> >
> > -Chuck
> >
> > ----- Original Message -----
> > > From: "Rajesh Khan" <rajeshkhan...@gmail.com>
> > > To: users@qpid.apache.org
> > > Sent: Wednesday, August 28, 2013 4:53:14 PM
> > > Subject: Clearing up queues in C++
> > >
> > > I wanted to know what my options are when I need to clear up queues.
> > > My first preference would be to clear them up programatically. I tried
> > > setting a queue to auto-delete however that does not seem to work.I
> have a
> > > sender and a receiver. The receiver creates a queue and sets the auto
> > > delete parameter. However even after the receiver disconnects there
> still
> > > is content in the queue. Is there any way of forcefully emptying a
> queue
> > > using a command prompt ?
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> > For additional commands, e-mail: users-h...@qpid.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> For additional commands, e-mail: users-h...@qpid.apache.org
>
>

Reply via email to