On browsing as far as I know you dont need to close and reopen the queue
just issue another get with the browse first option. Eg.
Pseudo-code.
getrc = MQRC_NONE;
getMsgOpts.Options = MQGMO_BROWSE_FIRST + MQGMO_WAIT + MQGMO_CONVERT +
MQGMO_FAIL_IF_QUIESCING;
getMsgOpts.WaitInterval = waitTime;
while(MQRC_NONE == getrc)
{
MQGET(...., &getrc)
if(MQRC_NO_MSG_AVAILABLE == getrc)
{
getMsgOpts.Options = MQGMO_BROWSE_FIRST + MQGMO_WAIT +
MQGMO_CONVERT + MQGMO_FAIL_IF_QUIESCING;
getMsgOpts.WaitInterval = 0; // Dont wait on error retry
MQGET(...., &getrc) // Try again
}
if(MQRC_NONE == getrc)
{
// Do something with the message like MQGMO_MSG_UNDER_CURSOR if its
contents are what we were looking for.
getMsgOpts.Options = MQGMO_BROWSE_NEXT + MQGMO_WAIT +
MQGMO_CONVERT + MQGMO_FAIL_IF_QUIESCING;
getMsgOpts.WaitInterval = waitTime;
}
// Wait a little while before repeating the loop to browse all messages
looking for a special one
}
As for the probable cause of your problem I agree with the others you
probably have it under syncpoint.
Regards
Tim A
Pavel Tolkachev
<pavel.tolkachev@ To: [EMAIL PROTECTED]
DB.COM> cc:
Sent by: MQSeries Subject: Re: Message not visible in Q
List
<MQSERIES@AKH-WIE
N.AC.AT>
04/10/2002 04:16
AM
Please respond to
MQSeries List
Sorry if it repeats anyone else's suggestion -- I did not follow the thread
before:
One possibility for not getting the messages requested with one of BROWSE
options is when they are posted with higher priority than the last obtained
by the browse cursor. In this case, it is necessary to restart the browse
cursor (re-open the queue) before application can get higher priority
messages.
2 more cents
Pavel.
"Bullock, Rebecca
(CSC)" To:
[EMAIL PROTECTED]
<[EMAIL PROTECTED] cc:
> Subject: Re: Message not
visible in Q
Sent by: MQSeries
List
<MQSERIES@AKH-Wie
n.AC.AT>
10/03/2002 01:55
PM
Please respond to
MQSeries List
And in addition to the other suggestions (expired and uncommitted), there's
always the possibility that you have accidentally specified a correlid or
msgid on your MQGET and there's nothing that matches that value available.
-- Rebecca
Rebecca Bullock
Computer Sciences Corporation
Educational Testing Service Account
Princeton, NJ 08541
e-mail: [EMAIL PROTECTED][EMAIL PROTECTED]
-----Original Message-----
From: Raju, Arun - Contingent Staff
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 10:13 AM
To: [EMAIL PROTECTED]
Subject: Message not visible in Q
Hi,
I have a channel exit that stores all data being sent/recv. from the
channels to a Local queue. I am having an issue where i can see that the q
depth goes up but when i try to look at the q, the message says that there
is no message in the queue.
Do any of you know why this could happen ?
I have tried to think it from the perspective of NPMSPEED parm. in
the channel def's, but still cannot figure out why the message cannot be
read from the queue. The specific message is
"there are no messages for Browsing. Waiting for new messages"
Any help will be apprecitaed....
thanks,
**************************************************************************
This e-mail and any files transmitted with it may contain privileged or
confidential information. It is solely for use by the individual for whom
it is intended, even if addressed incorrectly. If you received this e-mail
in error, please notify the sender; do not disclose, copy, distribute, or
take any action in reliance on the contents of this information; and delete
it from your system. Any other use of this e-mail is prohibited. Thank you
for your compliance.
--
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
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