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 » NULL Queue

Post new topic  Reply to topic
 NULL Queue « View previous topic :: View next topic » 
Author Message
RogerLacroix
PostPosted: Tue Nov 17, 2015 10:26 am    Post subject: NULL Queue Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

All,

The other day, an old consulting colleague emailed me with an interesting question about if MQ has a 'Null Q'. Obviously, MQ doesn't have one but I did a create a blog posting called 'How to Create and Empty a NULL Queue in a Queue Manager'.

Enjoy.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Tue Nov 17, 2015 11:14 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

How about using the new features of V8 and forcing the expiry?
Or if the application was JMS and the queue was in the properties file, redefine the queue in the URI form with near immediate expiry of the messages...?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
tczielke
PostPosted: Tue Nov 17, 2015 1:45 pm    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 941
Location: Illinois, USA

This thread was also posted on the MQ LISTSERV, and Paul Clarke mentioned that just doing the following could be done:

Code:

DEFINE TOPIC(NULLTOPIC) TOPICSTR('.NULL.') SUB(DISABLED)
DEFINE QALIAS(NULLQ) TARGTYPE(TOPIC) TARGET(NULLTOPIC)


When your applications PUT to the NULLQ, they will go to a topic with no subscribers, and then be discarded. I wish I had known about this, before I wrote a COBOL program this year to basically do what Roger had coded with emptyQ!

P.S. - We do not use PUB/SUB, so I may have messed up some of the PUB/SUB terminology, above.
_________________
Working with MQ since 2010.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » NULL Queue
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.