View previous topic :: View next topic
|
Author |
Message |
cgilker
New User
Joined: 02 Mar 2022 Posts: 4 Location: USA
|
|
|
|
What does MQ return (CompCode, Reason) when a program issues an MQGET against a queue that has been stopped?
I can't seem to find that anywhere. My guess is that the CompCode is MQCC_FAILED, and the Reason is MQRC_NO_MSG_AVAILABLE?
Can someone confirm?
I realize I can test this myself, but before I put in that effort, if someone knows this off the top of their head, I would be grateful. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
Please give a try and test it .. it could be 2003 or 2005 not sure . |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
Quote: |
What does MQ return (CompCode, Reason) when a program issues an MQGET against a queue that has been stopped? |
What do you mean by a "stopped queue" ? Queue Managers can be stopped but queue processing may be stopped by :
a) get-disabling the queue or
b) put-disabling the queue or
c) if triggered, by stopping the CKTI (or equivalent) monitor task.
For:
a) you would get MQRC_GET_DISABLED
b) you would get MQRC_NO_MSG_AVAILABLE as no messages can have been MQPUT(1) to the queue
c) no task to get a message, so no return code
Regards,
Garry. |
|
Back to top |
|
|
|