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 » General IBM MQ Support » WaitInterval not working as expected!!

Post new topic  Reply to topic
 WaitInterval not working as expected!! « View previous topic :: View next topic » 
Author Message
Fuzzy_mq
PostPosted: Tue Nov 07, 2006 2:57 pm    Post subject: WaitInterval not working as expected!! Reply with quote

Apprentice

Joined: 27 May 2004
Posts: 31
Location: US

All,

My problem is MQGet continues to wait till the waitinterval value and does not exit when the message arrives. I searched the forum and found the same issue :
http://www.mqseries.net/phpBB2/viewtopic.php?t=28452&highlight=mqgmowait

Jeff says - You're probably forgetting to clear the Message ID and CorrId before you issue your get.

Could you tell me how do I go about clearing the Message and CorrIds?

In our send/receive program, we send the messages, store the MessageId in a variable. Then use that Id to retrieve the reply message.
Here are the Get options that I am using:
MQC.MQGMO_FAIL_IF_QUIESCING
+ MQC.MQGMO_WAIT
+ MQC.MQGMO_LOGICAL_ORDER
+ MQC.MQMO_MATCH_CORREL_ID;

Thanks,
Suchit
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Nov 07, 2006 3:33 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The basic pattern for request/reply is that the reply message will have the correlation ID set to the message ID of the request message.

So you may simply be waiting for the wrong thing.

Otherwise, you want the MQCI_NONE and MQMI_NONE constant values.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Nov 08, 2006 12:20 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

You need to set your correlid variable to the value of your request message msgid before issuing the MQGET.

The server end must reply with the reply correlid set from the request message's msgid.
Back to top
View user's profile Send private message
Fuzzy_mq
PostPosted: Wed Nov 08, 2006 7:50 am    Post subject: Reply with quote

Apprentice

Joined: 27 May 2004
Posts: 31
Location: US

Thanks for your replies.

Yes, reply message is setting correlation ID with the message ID of the request message. The correct reply message does get read, but after the max interval.

Thanks,
Suchit
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Wed Nov 08, 2006 7:56 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Just for grins and giggles try it without

Code:
+ MQC.MQGMO_LOGICAL_ORDER


What version of MQ and what CSD level are you on?

What version of the Operating system?
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Nov 08, 2006 7:59 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Don't add values for Match Options to the variable used for Get Options value. They are different things.

You might add the MQGMO_CONVERT though for good measure
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Nov 08, 2006 9:40 am    Post subject: Re: WaitInterval not working as expected!! Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Fuzzy_mq wrote:
Here are the Get options that I am using:
MQC.MQGMO_FAIL_IF_QUIESCING
+ MQC.MQGMO_WAIT
+ MQC.MQGMO_LOGICAL_ORDER
+ MQC.MQMO_MATCH_CORREL_ID;

MQMO_MATCH_CORREL_ID goes in the MD.MatchOptions not the GMO.Options.
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 » General IBM MQ Support » WaitInterval not working as expected!!
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.