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 » MQGET tooo tired...

Post new topic  Reply to topic
 MQGET tooo tired... « View previous topic :: View next topic » 
Author Message
Shine S.
PostPosted: Thu May 23, 2002 4:47 am    Post subject: MQGET tooo tired... Reply with quote

Newbie

Joined: 23 May 2002
Posts: 9
Location: Mumbai, India

hi...
i'm facing a strange problem with my mqget method... it is waiting for the message indefinitely even if message comes to the queue. ive tried setting wait interval with different values.. but after a long stretch of waiting for messages.... it sleeps!

please help me get my MQ back to normal..

Shine
_________________
Systems Engineer
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
mqonnet
PostPosted: Thu May 23, 2002 5:01 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Check to see if you have any specific Get options. If so try with defaults.
Also are you initializing/reinitializing the MD which you are using on a Get. If not, then the values in the md are from the first get and which cause all hinderences. Because the next get thinks that it needs to search/look for the specific message with the msgid/correlid of the previous message.

Also please either post the piece of Get logic code here, or post at least your md and get options, if the above does not resolve your prblm.

Cheers.
Kumar
_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Shine S.
PostPosted: Thu May 23, 2002 5:05 am    Post subject: Reply with quote

Newbie

Joined: 23 May 2002
Posts: 9
Location: Mumbai, India

thank u sooo much kumar for ur quick reply.. i'll try doing what u said..
infact i'm not resetting any of the mqheaders for subsequent MQGETs..
thanx again

_________________
Systems Engineer
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Shine S.
PostPosted: Thu May 23, 2002 5:12 am    Post subject: More of the options... Reply with quote

Newbie

Joined: 23 May 2002
Posts: 9
Location: Mumbai, India

hi..
i'm setting the MQMD with MQMD_DEFAULT
and the Options for Get are
MQGMO_WAIT + MQGMO_CONVERT + MQGMO_SYNCPOINT

plz help me..
_________________
Systems Engineer
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
oz1ccg
PostPosted: Thu May 23, 2002 5:16 am    Post subject: Reply with quote

Yatiri

Joined: 10 Feb 2002
Posts: 628
Location: Denmark

What is the value of WaitInterval in MQGMO, is it zero ? or -1

if -1 -> unlimited wait...

we don't want more waitingtime don't we ?
_________________
Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
mqonnet
PostPosted: Thu May 23, 2002 5:17 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

As you already pointed you, you need to REINITIALIZE the Md, before you call mqget for the second time. Else the first Get's msgid is taken as key and all the subsequent mqget's search for a msg with this msgid, which will never come. Since you already got one. Hence the key here is reinitializing.

Cheers.
Kumar
_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Shine S.
PostPosted: Thu May 23, 2002 5:26 am    Post subject: Itz initialised... Reply with quote

Newbie

Joined: 23 May 2002
Posts: 9
Location: Mumbai, India

hi again..
The mqmd structure is reinitialised for each call using the MQMD_DEFAULT assignment. is this initialisation enough?? or any other initialisation is necessary???

and ive given wait interval as 60000 not -1.

thanx.. Shine
_________________
Systems Engineer
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
mqonnet
PostPosted: Thu May 23, 2002 5:36 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Is this getting app also doing the puts. Are you using Syncpointing.
Is it possible that the messages that arrive on queue(what you think), might actually not have been committed yet, by the other app which is doin the put. If this is the same app doing the put too, then are you committing the messages. Until and unless the messages are committed by the sending app, this app(getting app) cannot retrieve them. Check the same.

And if this still does not resolve the prob, could you please post your Get code in here.

Cheers.
Kumar
_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Shine S.
PostPosted: Thu May 23, 2002 6:03 am    Post subject: Flow.. Reply with quote

Newbie

Joined: 23 May 2002
Posts: 9
Location: Mumbai, India

i'm using syncpoint but the putting application is actually committing the messages. when i check the queu depth itz showing messages but the application is waiting(still) for messages.

the flow of code is like this..

MQCONN
MQBEGIN

do
initialise MQMD structure and Options
MQGET with SyncPoint
while NO_MSG_AVAILABLE

...........
...........

Commit or Rollback

Ive tried setting different wait intervals.. but in the long run ( a few hours ) the application sleeps indefinitely..

is there any remedy for it...

i tried attaching the sleeping process in gdb and it showed the following piece of information

#0 xxxx in _select_sys () from /usr/lib/libc.2
#1 xxxx in select () from /usr/lib/libc.2
#2 xxxx in cma_select () from /opt/mqm/lib/libmqmcs.sl
#3 xxxx in xllListenSelectAcceptAndClose () from /opt/mqm/lib.libmqmcs.sl

#4 xxxx in xllWaitSocketEvent () from /opt/mqm/lib.libmqmcs.sl


.... any idea... what might've happened
_________________
Systems Engineer
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
mqonnet
PostPosted: Thu May 23, 2002 6:21 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Try running amqsbcg to check if the messages on the queue are actually committed, may be after this program ends. Just looking at the curdepth go raising does not mean that the messages are actually ready to be retrieved. Until they are committed, they cannot be retrieved. Hence, to clarify this, you could run amqsbcg to see if you are able to browse all the messages off the queue.

Cheers.
Kumar
_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Shine S.
PostPosted: Thu May 23, 2002 6:29 am    Post subject: Committed ? Reply with quote

Newbie

Joined: 23 May 2002
Posts: 9
Location: Mumbai, India

.. and one more thing..
the same application ( which was refusing to read the message ) reads the queue once it is brought down!
that means, when i bring it down and bring it up again.. it reads ( huh! )

c ya soon..
Shine
_________________
Systems Engineer
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQGET tooo tired...
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.