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
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