Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange queue browsing behaviour

Status
Not open for further replies.

LJR

Programmer
Mar 15, 2001
9
NL
Hi,

I am experiencing very strange behaviour when browsing a queue. I must be missing something very obvious here.
I am running MQSeries 5.1 for NT and using Visual Basic 5.0 and the ActiveX data components to access MQSeries.

I have a small test application that puts three messages in a queue. The message bodies are simple strings: "Test1", "Test2", and "Test3" respectively. Inspecting the queue in the MMC, I see a Current depth of 3 messages and when I browse the messages, they are all there.

My program also browses the queue using the BROWSE_FIRST and BROWSE_NEXT options in MQGet calls and I see all three messages.
Next, I browse the queue again, but when the second message passes by, I remove it using an MQGet call specifying MSG_UNDER_CURSOR option. Now strange things start to happen.
When I browse the queue I only see message 3. The MMC is confused as well: it tells me that the queue has a current depth of 2 messages (which is correct: Message 1 and Message 3 should both be present) but when I browse the queue I only see Message 3!
Next, I browse the queue again, and retrieve Message 3 from the queue. When I inspect the MMC again message 1 reappears!
Anybody got any ideas?

Thanks, Laurens
 
Oops, roaming around on the IBM MQSeries website, I found an exact description of this problem (IC24289). I have downloaded the CSD07 update and my problems are gone. (The other suggestion: setting an environment variable MQGETPERF=NO did not work for me).

LJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top