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 » MQGMO_WAIT or MQGMO_NO_WAIT

Post new topic  Reply to topic
 MQGMO_WAIT or MQGMO_NO_WAIT « View previous topic :: View next topic » 
Author Message
vald
PostPosted: Wed Dec 05, 2007 5:50 am    Post subject: MQGMO_WAIT or MQGMO_NO_WAIT Reply with quote

Novice

Joined: 16 Nov 2007
Posts: 17

My server application has very simple design due to debug purposes.
I need understand something before to swith to the more complicated design.

MQOPEN(...);

gmo.Options = MQGMO_WAIT;

while(1)
{
MQGET(...);
}

What would happen if I change MQGMO_WAIT to MQGMO_NO_WAIT?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Dec 05, 2007 5:54 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The MQGet would always return immediately - either with a message or an MQRC 2033.

With the wait, it will always return either with a message or an MQRC 2033 - but it may not return until the entire Wait Interval has passed.

This flag basically controls whether the Wait interval is used or ignored.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Wed Dec 05, 2007 6:04 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Do yourself a favor and at least superficially read the Application Programming Guide and if you are using Java, the "Using Java" book. If you have read them but not in a long time, it is worth a review.

I will even take my own advise.
_________________
Joseph
Administrator - IBM WebSphere MQ (WMQ) V6.0, IBM WebSphere Message Broker (WMB) V6.1 & V6.0
Solution Designer - WMQ V6.0
Solution Developer - WMB V6.1 & V6.0, WMQ V5.3
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQGMO_WAIT or MQGMO_NO_WAIT
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.