qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nithesh Shetty <knitheshshe...@yahoo.com>
Subject Re: qpid 0.8 queries
Date Thu, 14 Jul 2011 11:53:29 GMT
> and we can reach to the starting point. if there is
> possibility of doing so please let me know.

i meant to say is there any way to iterate through the message queue to and fro.

--- On Thu, 7/14/11, Nithesh Shetty <knitheshshetty@yahoo.com> wrote:

> From: Nithesh Shetty <knitheshshetty@yahoo.com>
> Subject: Re: qpid 0.8 queries
> To: users@qpid.apache.org
> Date: Thursday, July 14, 2011, 11:09 AM
> > You can also browse the queue to
> non-destructively read
> > messages, instead of draining the queue. See e.g. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.3/html-single/Programming_in_Apache_Qpid/index.html,
> > section "2.4.3.3. browse".
> 
> that will help me to browse the message but after browsing
> when it satifies my condition i want to remove it but since
> its browing mode
> i cannot remove it from the queue.
> 
> Let me explain  u my requirement by qiving an ex:
> 
> let say there are ten messages in an queue
> i want to delete the msg on 7 pos in the queue reason being
> it matches
> the unique msg id which i have set during sending.
> Now i want to delete the first msg  and so on.
> 
> In qpid i suppose while getting / fetching it moves to the
> next window
> and we can reach to the starting point. if there is
> possibility of doing so please let me know.
> 
> 
> 
> 
> 
> 
> --- On Thu, 7/14/11, Pavel Moravec <pmoravec@redhat.com>
> wrote:
> 
> > From: Pavel Moravec <pmoravec@redhat.com>
> > Subject: Re: qpid 0.8 queries
> > To: users@qpid.apache.org
> > Date: Thursday, July 14, 2011, 6:52 AM
> > > even that is difficult to
> > implement because asoon as u get a message its
> > > removed from the queue 
> > You can also browse the queue to non-destructively
> read
> > messages, instead of draining the queue. See e.g. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.3/html-single/Programming_in_Apache_Qpid/index.html,
> > section "2.4.3.3. browse".
> > 
> > 
> > Kind regards,
> > Pavel
> > 
> > 
> > ----- Original Message -----
> > From: "Nithesh Shetty" <knitheshshetty@yahoo.com>
> > To: users@qpid.apache.org
> > Sent: Thursday, July 14, 2011 5:59:28 AM
> > Subject: Re: qpid 0.8 queries
> > 
> > So to remove a message with a given id, you would have
> to
> > > go through all the messages on the queue until
> you
> > find the
> > > one you want and then acknowledge only that
> message
> > and
> > > release all the others. That is not a pattern I
> would
> > > recommend for general use.
> > > 
> > 
> > even that is difficult to implement because asoon as u
> get
> > a message its
> > removed from the queue 
> > 
> > I have used localqueue.get api is there any other way.
> need
> > help 
> > 
> > --- On Wed, 7/13/11, Gordon Sim <gsim@redhat.com>
> > wrote:
> > 
> > > From: Gordon Sim <gsim@redhat.com>
> > > Subject: Re: qpid 0.8 queries
> > > To: users@qpid.apache.org
> > > Date: Wednesday, July 13, 2011, 10:57 AM
> > > On 07/13/2011 05:36 AM, Nithesh
> > > Shetty wrote:
> > > > My requirement is
> > > > when i browse a  msg in a queue it should
> > return
> > > me unique msg id.
> > > > 
> > > > and if i successfully process the msg
> received
> > from
> > > the queue then
> > > > i remove the msg from the queue matching the
> msg
> > id
> > > mentioned.
> > > 
> > > The problem you have here is that the c++
> messaging
> > API
> > > does not support selecting a message by id (or
> indeed
> > in any
> > > way filtering the messages to be received from a
> > queue).
> > > 
> > > So to remove a message with a given id, you would
> have
> > to
> > > go through all the messages on the queue until
> you
> > find the
> > > one you want and then acknowledge only that
> message
> > and
> > > release all the others. That is not a pattern I
> would
> > > recommend for general use.
> > > 
> > > Selectors is a feature we plan to add in the
> future to
> > the
> > > messaging API and to the c++ broker.
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > 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
> > 
> > 
> >
> ---------------------------------------------------------------------
> > 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
> 
> 

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


Mime
View raw message