ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » MQCB multi threaded

Post new topic  Reply to topic Goto page Previous  1, 2
 MQCB multi threaded « View previous topic :: View next topic » 
Author Message
PaulClarke
PostPosted: Tue Oct 28, 2014 11:42 pm    Post subject: Reply with quote

Grand Master

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General IBM MQ Support » MQCB multi threaded
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.