Posted: Tue Jun 11, 2002 5:40 am Post subject: Clearing a Queue with the JMS classes
Novice
Joined: 09 Aug 2001 Posts: 17 Location: Charlotte, NC
The MQ base classes may better serve this purpose, but I am required to use the JMS classes in my situation and don't know about the wisdom of mixing base MQ and JMS MQ.
So I have come to the conclusion that the only way to clear a queue is to read it till empty. The problem I'm getting with the JMS classes is there can be things wrong with the header and an exception will be thrown, the message left on the queue.
Is there a way to clear a queue with the JMS classes regardless of the health of the messages?
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