As long as you specify *_FAIL_IF_QUIESCING on your MQGET calls you should
be OK.
Note that MQOPEN, MQPUT also have their own fail if quiescing options and
these should be used.
As far as doing an MQ get every 30 seconds or so yes you could do it that
way or you could just use the wait option of the MQGET options structure
MQGMO and have your MQGET wait 30 seconds before failing with rc=2033
MQRC_NO_MSG_AVAILABLE.
Finally your application should be coded to properly handle rc=2161
MQRC_Q_MGR_QUIESCING or rc = 2162 MQRC_Q_MGR_STOPPING and rc=2009
MQRC_CONNECTION_BROKEN
Regards
Tim A
Steve Muller
<[EMAIL PROTECTED]> To: [EMAIL PROTECTED]
Sent by: MQSeries cc:
List Subject: Can idle but connected app
cause a problem??
<MQSERIES@AKH-WIE
N.AC.AT>
22/08/2002 07:05
AM
Please respond to
MQSeries List
Hi all,
We ll have about 200 Win2k Clients (MQ 5.2) connect to
the queue manager on the server side (the platform to
yet to be determined). Clients will send a request to
the server app which in turn will send a reply back.
In these client apps, we ll be using Perm. Dynamic
queues (to be able to store persistent messages too)
for the replies coming back from the server app. I
have been told that these client apps, once they are
started up, WILL REMAIN RUNNING ALL THE TIME though
they will not be putting or getting messages most of
the time probably. When the apps are started, they
will connect to the queue manager and stay connected
until they are stopped. We ll use the
Fail_IF_quiescing option the way it is recommended.
My concern is, if the queue manager needs to be
recycled would the fact that these apps are
connected cause a problem (i.e. would the qmgr be
recycled despite these apps being connected)? Would it
be better for these apps to try to MQGET from their
reply queue (even if they are not expecting anything)
from time to time, say every 30 sec , to detect qmgr
quiescing?
I would very much appreciate your response.
Thanks in advance,
Steve
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive