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 Java / JMS » Regarding MQGMO WaitInterval.

Post new topic  Reply to topic
 Regarding MQGMO WaitInterval. « View previous topic :: View next topic » 
Author Message
pjramana
PostPosted: Thu Mar 18, 2004 1:54 pm    Post subject: Regarding MQGMO WaitInterval. Reply with quote

Novice

Joined: 08 Mar 2004
Posts: 14

I am using following options to wait on a particular queue.

gmo.matchOptions = MQC.MQMO_MATCH_CORREL_ID | MQC.MQMO_MATCH_MSG_ID | MQC.MQGMO_WAIT;
gmo.waitInterval = 30000; // 30 sec

The program doesn't wait for 30 seconds. It just comes out with 2033 error which is NO_MSG_AVAILABLE.

Can someone tell me whatelse i need to do to make it wait on the queue.

By the way, the program is a Java program and it is using Base Java MQ api.

Thanks,
Janaki.
Back to top
View user's profile Send private message
StefanSievert
PostPosted: Thu Mar 18, 2004 2:00 pm    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

You are close...

MQGMO_WAIT is not an option that you can specify on the matchOptions. It needs to be specified with the MQGMO.options attribute.
You can easily tell by the prefix of the MQ constants where they are most likely to go:
MQOO_* = Open options
MQMO_* = Match options
MQGMO_* = Get Message Options
etc.

The fact that you are or'ing it to the match options is likely to cause the 2033.


HTH,
Stefan
_________________
Stefan Sievert
IBM Certified * WebSphere MQ


Last edited by StefanSievert on Thu Mar 18, 2004 2:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Mar 18, 2004 2:04 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

My guess would be that you have used one of the MQQueue methods that doesn't specify the MQGMO so your program isn't waiting.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
pjramana
PostPosted: Thu Mar 18, 2004 3:24 pm    Post subject: Reply with quote

Novice

Joined: 08 Mar 2004
Posts: 14

Thanks for the replies.

StefanSievert:

I corrected my optioins and it seems to be working fine.

Now it looks like


gmo.matchOptions = MQC.MQMO_MATCH_CORREL_ID + MQC.MQMO_MATCH_MSG_ID ;
gmo.options= MQC.MQGMO_WAIT;
gmo.waitInterval = 30000;

Thanks,
Janaki.
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 Java / JMS » Regarding MQGMO WaitInterval.
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.