--- 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:02 PM
> On 07/12/2011 07:26 AM, Nithesh
> Shetty wrote:
> > MQ has a option of generating unique message id for
> all the messages
> > inserted in the queue and we can retrieve those
> messages from the
> > queue using the messageId. I have checked
> MessageProperties structure
> > in qpid. it has a field called messageid. But did not
> find any way of
> > generating unique message id while messageTransfer or
> getting the
> > message using message id.
> > Can you please provide any reference for it or any
> suggestion as i
> > need this functionality.
> 
> I believe the message id is generated by default, but you
> can control it via the setDisableMessageID() on the JMS
> MessageProducer interface.

I am using C++ Broker and checked there is no function called 
setDisableMessageID

> 
> You should be able to retrieve the id with
> Message.getJMSMessageID().

using C++ Broker.

> 
> There is no direct support for accessing a message by id,
> but you should be able to use a selector to do so (standard
> JMS).
> 
> > When we close the broker all the queue created get
> deleted even after
> > specifying the option of durable while creating the
> queue.
> 
> Do you have a persistence plugin installed? 
> (https://cwiki.apache.org/qpid/faq.html#FAQ-Persistence).
> 
> 
> ---------------------------------------------------------------------
> 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