|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Regarding MQGMO WaitInterval. |
« View previous topic :: View next topic » |
Author |
Message
|
pjramana |
Posted: Thu Mar 18, 2004 1:54 pm Post subject: Regarding MQGMO WaitInterval. |
|
|
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 |
|
 |
StefanSievert |
Posted: Thu Mar 18, 2004 2:00 pm Post subject: |
|
|
 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 |
|
 |
bower5932 |
Posted: Thu Mar 18, 2004 2:04 pm Post subject: |
|
|
 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 |
|
 |
pjramana |
Posted: Thu Mar 18, 2004 3:24 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|