|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Read a message by messageId |
« View previous topic :: View next topic » |
Author |
Message
|
langrand |
Posted: Fri Aug 31, 2007 6:47 am Post subject: Read a message by messageId |
|
|
Newbie
Joined: 31 Aug 2007 Posts: 7
|
Hi,
I would like to read a selected message in a queue. the selector is the MessageID.
I did it before but I select the message by the correlationID and i have no problems.
qReceiver = session.createReceiver(iQueue, "JMSCorrelationID=\'" + messageID + "\'");
So I think it was:
qReceiver = session.createReceiver(iQueue, "JMSMessageID: =\'" + messageID + "\'");
but I have this JMS Exception:
javax.jms.InvalidSelectorException: MQJMS0004
could someOn Help me
thanks a lot
best regards
Ludovic |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Aug 31, 2007 12:42 pm Post subject: Re: Read a message by messageId |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
langrand wrote: |
qReceiver = session.createReceiver(iQueue, "JMSMessageID: =\'" + messageID + "\'");
could someOne Help me
thanks a lot
best regards
Ludovic |
qReceiver = session.createReceiver(iQueue, "JMSMessageID: =\'" + messageID + "\'");
Try:
qReceiver = session.createReceiver(iQueue, "JMSMessageID =\'" + messageID + "\'");
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
langrand |
Posted: Sun Sep 02, 2007 10:41 pm Post subject: |
|
|
Newbie
Joined: 31 Aug 2007 Posts: 7
|
thanks a lot !!!
I think I never see this two point.
Every thing is Ok now.
thanks again.
Best regards
Ludovic |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|