On 25 May 2012 18:38, yannanlu <[email protected]> wrote:
> I am a newby on Qpid. I have Qpid 0.16 Java broker running. I am able to
> send/receive and browse messages on queues via JMS client. But I am not able
> to browse individual messages via message selector on their JMSMessageID.

When selecting by JMSMessageID you need to remove the leading "ID:"
from the string used in your selector.  That is if

getJMSMessageID() returns "ID:xxxxyyyyzzzz" you would need to specify
a selector of the form

"JMSMessageID = 'xxxxyyyyzzzz'" in order to be able to select on it.
This is because the JMS spec (bizarrely) insists that the JMSMessageID
begins with ID: whereas the actual native AMQP message ID does not.

Hope this helps,
Rob

>
> I understood Qpid is not a pure JMS solution. But I am wondering how to
> browse the messages via message selector in AMQP land. Is there any example
> or successful use case?
>
> BTW, I really like Qpid. It allows my JMS code to access AMQP land. Compared
> to RabbitMQ, it supports browse. Therefore, I would like to know how to
> browse individual messages from a queue via certain message selectors. It
> does not have to be JMS friendly.
>
> Thanks in advance,
>
> Yannan
>
> --
> View this message in context: 
> http://qpid.2158936.n2.nabble.com/get-message-by-correlationId-tp3440876p7576789.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to