qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marnie McCormack <marnie.mccorm...@googlemail.com>
Subject Re: get message by correlationId
Date Fri, 14 Aug 2009 12:42:54 GMT
Hi Bill,

You can use JMS message selectors to get the message you want from the
queue/topic, you specify the selector string on the creation of the consumer
(via the Session) e.g.
session.createConsumer(queue,"JMSCorrelationID="+correlationID)

Hth,
Marnie




On Fri, Aug 14, 2009 at 1:23 PM, Bill Whiting <textux@bellsouth.net> wrote:

> So the only way to receive a specific message by the correlationId (at this
> time) would be to browse the queue looking for the correct message?
>
> //Bill
>
>
> On 08/14/2009 02:58 AM, Gordon Sim wrote:
>
>> Bill Whiting wrote:
>>
>>> Is there a sample program or documentation that shows getting a message
>>> from a queue by the correlationId or messageId?
>>>
>>
>> We don't I'm afraid (assuming you are talking about the c++ broker). We
>> hope to add in selectors shortly however and this would be a good example to
>> add at that time.
>>
>> ---------------------------------------------------------------------
>> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message