Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
There are essentially 2 ways of clearing a queue. You can issue the 'CLEAR QUEUE' command or you can actually just get all the messages off a queue. You can't issue the 'CLEAR QUEUE' command since that can only be issued when the queue is not in use. However, there is nothing to stop you just consuming all the messages frmo a queue while you are in a callback. It is pretty trivial to issue a while(1) { MQGET() } loop. Remember that you want to specify a message size of 0 and ACCEPT_TRUNCATED messages.
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com
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