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 » MQGetMessageOptions waitInterval

Post new topic  Reply to topic
 MQGetMessageOptions waitInterval « View previous topic :: View next topic » 
Author Message
arunsridharan.india@gmail
PostPosted: Wed Oct 14, 2009 10:33 am    Post subject: MQGetMessageOptions waitInterval Reply with quote

Newbie

Joined: 08 Apr 2009
Posts: 4

Hi,
We use the msg id and corelation id to get messages from the queue.
gmo.waitInterval is 30000 milli seconds. But in some cases we noticed that the transaction doesnot timeout with 2033 error after 30 seconds.
It keeps waiting for millions of seconds. Any feedback would be appreciated. we donot use MQC.MQGMO_NO_WAIT.

Env: Websphere Application server 6.0
MQ version: 6.0
os: Solaris.

Regards,
Arun
Back to top
View user's profile Send private message
Sam Uppu
PostPosted: Wed Oct 14, 2009 11:11 am    Post subject: Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

This should work:

gmo.options = gmo.options + MQC.MQGMO_WAIT;

gmo.waitInterval = 30000;

queue.get(mqMsg,gmo);

Thanks.
Back to top
View user's profile Send private message
arunsridharan.india@gmail
PostPosted: Wed Oct 14, 2009 11:44 am    Post subject: Reply with quote

Newbie

Joined: 08 Apr 2009
Posts: 4

Hi,
We are already using that. We have this issue only for some of the transactions.

gmo.options = MQC.MQGMO_WAIT;
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Oct 14, 2009 1:29 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

I believe the point Sam was trying to make is that you HAVE to set a wait interval. The default if you do not set a wait interval might well be wait unlimited ...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Thu Oct 15, 2009 4:20 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

He says he is using 30000 for the interval, yet it waits for "millions of seconds" sometimes.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Oct 15, 2009 6:24 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

How do you count the wait time when saying millions of ?...
Do you correctly reset to 0 after a 2033 (no message matching criteria)?

Or do you cumulate while waiting for a message?

If the wait interval is set each time after you recreate the gmo options in the loop and you still have that problem open a PMR
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQGetMessageOptions 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.