ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MQ API Exerciser and MQGET using MessageId

Post new topic  Reply to topic
 MQ API Exerciser and MQGET using MessageId « View previous topic :: View next topic » 
Author Message
mqnewguy
PostPosted: Wed Jun 29, 2005 3:24 pm    Post subject: MQ API Exerciser and MQGET using MessageId Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Jun 30, 2005 9:35 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
sutanu
PostPosted: Sat Jul 16, 2005 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
hopsala
PostPosted: Thu Sep 29, 2005 7:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQ API Exerciser and MQGET using MessageId
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.