Posted: Mon Nov 11, 2002 12:08 am Post subject: Queue Cleanup using MQ Java
Novice
Joined: 29 Oct 2002 Posts: 20
Hi,
I posted the "NullPointerException from MQ Java". It seems currently no one knows what the fix for it. I have contacted IBM for this issue.
Meanwhile, I am thinking of a workaround of the problem. Since the NullPointerException is thrown by receiveNoWait(), I plan to catch the exception and remove the message from the queue (Otherwise all subsequent receiveNoWait will all throw NullPointerException until I clean up the queue). Is there any API from MQ Java to clean messages from the queue? I searched the "MQSeries Using Java" document but didn't manage to find any. Anyone knows how to do it?
If this cannot be done via Java API, is there any MQSeries tools allow to remove a particular message? The "Clear Message" provided by the MQSeries Explorer removes all messages in the queue. But I just want to remove the particular corrupted message from the queue.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum