|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ API Exerciser and MQGET using MessageId |
« View previous topic :: View next topic » |
Author |
Message
|
mqnewguy |
Posted: Wed Jun 29, 2005 3:24 pm Post subject: MQ API Exerciser and MQGET using MessageId |
|
|
Newbie
Joined: 22 Jun 2005 Posts: 8
|
I'm using MQv6.0 and am playing around with the MessageId and the API Exerciser. I cannot seem to MQGET from the queue with the specified messageid.
First, I put a message onto the Queue, in advanced mode, I specify the MsgId to be 142211 in the MessageDescriptor tab. The CorelId is set to MQCI_NONE. The Put Message Options tab has options set to MQPMO_NONE.
Now, I look at MQExplorer in Eclipse, and view properties of the message that I just put on there, I go to the Identifiers tab, copy the exact string for the Message id, and go back to the API Exerciser, set MsgId equal to this string. Now, in the GetMessageOptions tab, I set the MQMO_MATCH_MSG_ID option checked with everything else unchecked.
This gives me a MQRC_NO_MSG_AVAILABLE error. Why doesnt this simple test of message ids work? |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Jun 30, 2005 9:35 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I haven't played with the API exerciser myself, but my guess would be that you are running into trouble on the padding of the field. Try filling up all of the bytes and see what it does. |
|
Back to top |
|
 |
sutanu |
Posted: Sat Jul 16, 2005 12:06 pm Post subject: |
|
|
Newbie
Joined: 22 Apr 2005 Posts: 9
|
I've tried the same but I think there is a proble. So I did is made a browse and then made a get with message at the cursor position.
Hope this helps.. |
|
Back to top |
|
 |
hopsala |
Posted: Thu Sep 29, 2005 7:50 pm Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
Just wanted to confirm bower's problem-solving instincts - I have just encountered the same prob, performing a simple test and racking my brains as to why it doesn't work. Apparently, when you MQPUT messages in advanced mode, the ultra-buggy API exerciser does not pad the MsgID, so if you specify MsgID="TST" you'll end up with a message on queue with MsgID="TSTACKDHASFLD03408AFSDFA" etc.
To sum up: Anyone using the API Exerciser, note that you must pad the MsgId, CorrlId or GrpId fields with spaces if you're using them. Better yet, don't use the API exerciser at all, it's crap (due to this and additional reasons) |
|
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
|
|
|
|