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 » Invalid GMO Combinations

Post new topic  Reply to topic
 Invalid GMO Combinations « View previous topic :: View next topic » 
Author Message
brockneal
PostPosted: Tue Feb 03, 2004 7:33 am    Post subject: Invalid GMO Combinations Reply with quote

Newbie

Joined: 03 Feb 2004
Posts: 5

Does anyone know why I can't use the MQGMO_NO_SYNCPOINT option with the MQMO_MATCH_CORREL_ID option? From a Windows application I need to keep up with the correlationIDs of the put and get messages, but I need to do a destructive get and remove the get message from the static queue when successful. I am using the MQMO_MATCH_CORREL_ID option to insure my correlated gets, and the MQGMO_NO_SYNCPOINT option to do destructive gets and removal from the ReplyQueue. When my application runs, the get fails with a 2046 : MQRC_OPTIONS_ERROR. Is there any reason that I don't know of, that will keep me from using these two options together? Any help will be greatly appreciated.
Back to top
View user's profile Send private message
mqonnet
PostPosted: Tue Feb 03, 2004 7:53 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

UOW has nothing to do with the conditions you specify on a get, like in your case MQMO_MATCH_CORREL_ID. Post your complete GMO options and MD values here.

Also you could review "App programming reference" for any conflicts of this nature.

Cheers
Kumar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
brockneal
PostPosted: Tue Feb 03, 2004 8:02 am    Post subject: Reply with quote

Newbie

Joined: 03 Feb 2004
Posts: 5

Here are my options:

theGMO.Options := MQGMO_WAIT +
MQGMO_CONVERT +
MQGMO_NO_SYNCPOINT +
MQMO_MATCH_CORREL_ID;

And my Descriptor:

getMQMD.MessageType := MQMT_REPLY;
getMQMD.Persistence := MQPER_NOT_PERSISTENT;
getMQMD.Format := 'MQSTR';
getMQMD.CorrelationId := putMQMD.MessageId;

My application runs fine with MQGMO_NO_SYNCPOINT specified and without MQMO_MATCH_CORREL_ID. Or vice-versa.
Back to top
View user's profile Send private message
mqonnet
PostPosted: Tue Feb 03, 2004 8:17 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Oops.. you got it at the wrong place. Should have been something like this.

theGMO.MatchOptions := MQMO_MATCH_CORREL_ID;

It is match options and has its own attribute in the GMO structure. It is NOT in the Options attribute.

Cheers
Kumar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
brockneal
PostPosted: Tue Feb 03, 2004 9:59 am    Post subject: Reply with quote

Newbie

Joined: 03 Feb 2004
Posts: 5

That was the fix. Thanks for the help. At first I didn't think I had that method, but I realized that the 200 Interfaces do not have some of the methods and properties that the 500 Interfaces have. I have switched to the 500 Interfaces and everything is working fine. Thanks again.
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 » Invalid GMO Combinations
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.