Hi, 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. Now as per your mail. I will browse the msg in the queue and after processing the msg. again search in a loop for the matching msd id in queue and then delete it or is there any other way --- On Tue, 7/12/11, Gordon Sim <[email protected]> wrote: > From: Gordon Sim <[email protected]> > Subject: Re: qpid 0.8 queries > To: [email protected] > Date: Tuesday, July 12, 2011, 12:54 PM > On 07/12/2011 01:50 PM, Nithesh > Shetty wrote: > > But can i check the message id of message is the > localqueue and then match with my message id and it they > match then read... > > > > Some way through messageproperties or messageheader. > > You can check the message-id on the receiving client, > certainly (using > Message::getMessageId()). However you can't only receiver a > message with > a given id . Not sure if that is what you are looking for. > > > > > --- On Tue, 7/12/11, Gordon Sim<[email protected]> > wrote: > > > >> From: Gordon Sim<[email protected]> > >> Subject: Re: qpid 0.8 queries > >> To: [email protected] > >> Date: Tuesday, July 12, 2011, 12:41 PM > >> On 07/12/2011 01:22 PM, Nithesh > >> Shetty wrote: > >>> yes m using c++ qpid.messaging API? > >> > >> Then its easy enough to set the ID: > >> > >> import<qpid/types/Uuid.h> > >> > >> using qpid::types::Uuid; > >> ... > >> message.setMessageId(Uuid(true).str()); > >> > >> However there is no support for selectors yet on > this API. > >> > >> > --------------------------------------------------------------------- > >> 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] > > > > > --------------------------------------------------------------------- > 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]
