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 <[email protected]> wrote:

> From: Gordon Sim <[email protected]>
> Subject: Re: qpid 0.8 queries
> To: [email protected]
> 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:[email protected]
> 
>

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

Reply via email to