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 » get with wait option

Post new topic  Reply to topic
 get with wait option « View previous topic :: View next topic » 
Author Message
noles321
PostPosted: Wed Mar 29, 2006 10:04 am    Post subject: get with wait option Reply with quote

Apprentice

Joined: 15 Nov 2004
Posts: 43

Can an applicaiton do a get with wait but only until a message arrives.

ie - max time 15 seconds but if a message arrives continue without waiting the additional time for the wait to complete

thanks,
Back to top
View user's profile Send private message Send e-mail AIM Address
kevinf2349
PostPosted: Wed Mar 29, 2006 10:10 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Thats exactly how it works.
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Mar 29, 2006 10:10 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

yes
Look at the get message options
Back to top
View user's profile Send private message Send e-mail Visit poster's website
noles321
PostPosted: Wed Mar 29, 2006 10:37 am    Post subject: Reply with quote

Apprentice

Joined: 15 Nov 2004
Posts: 43

I am still a little confused after reading the get message options. Do I have to use a signal in order for the wait to be canceled?
Back to top
View user's profile Send private message Send e-mail AIM Address
jefflowrey
PostPosted: Wed Mar 29, 2006 10:39 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

NO.

Just specify MQGMO_WAIT in the MQGMO.Options and a value to the MQGMO.WaitInterval.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
noles321
PostPosted: Wed Mar 29, 2006 10:52 am    Post subject: Reply with quote

Apprentice

Joined: 15 Nov 2004
Posts: 43

I must be doing something wrong then because I do have the waitinterval set but it continues to wait until that time expires even when a message arrives..
Back to top
View user's profile Send private message Send e-mail AIM Address
jefflowrey
PostPosted: Wed Mar 29, 2006 11:06 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Then the message doesn't match the rest of your options.

You're probably forgetting to clear the Message ID and CorrId before you issue your get.
_________________
I am *not* the model of the modern major general.
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 » get with wait option
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.