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 » How to disable a queue so that nobody can put messages

Post new topic  Reply to topic
 How to disable a queue so that nobody can put messages « View previous topic :: View next topic » 
Author Message
claire
PostPosted: Mon Jul 18, 2005 7:26 pm    Post subject: How to disable a queue so that nobody can put messages Reply with quote

Apprentice

Joined: 10 Apr 2002
Posts: 32

Hello,

Would you please advise how to disable a queue so that nobody can put messages into it? In the meantime, my program should still be able to get messages from the put-disabled queue. Thanks a lot.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 18, 2005 7:28 pm    Post subject: Reply with quote

Grand High Poobah

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

You said it yourself put disable it
Code:
alter ql(my.queue.name) put(disabled)


Enjoy
Back to top
View user's profile Send private message Send e-mail
hopsala
PostPosted: Tue Jul 19, 2005 6:04 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

Sorry to barge in on such a neatly closed topic, but why should you ever have a need to do such a thing?
If the q is put-disabled, then it will eventually empty, and then what?

I sense some wrong design concept is afoot here...
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Jul 19, 2005 6:57 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

What if you are doing some kind of maintenance and you want to keep somebody from starting the application that puts messages?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
paulgroo
PostPosted: Tue Jul 19, 2005 7:07 am    Post subject: OS Reply with quote

Centurion

Joined: 07 Jul 2005
Posts: 138
Location: Ireland

It depends on which OS you're using, but I would temporarily change the permissions on the executable/script for the application. It depends on what Application it is and what OS it's running on, etc.
Back to top
View user's profile Send private message MSN Messenger
jefflowrey
PostPosted: Tue Jul 19, 2005 7:09 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Most MQ admins don't usually have any control over applications in terms of when, or how they start up, or the systems those apps run on.

Put disabling the queue is one good solution, as is stopping the listener (at least for client apps).
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
hopsala
PostPosted: Tue Jul 19, 2005 12:51 pm    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

I agree, PUT disabled is indeed a wonderful option for maintainance, and in my opinion a better option than using permissions, for reason already stated by others here.
But claire wrote something about a prog still reading from the q, so I got suspicious - maybe she wishes to do this for some other (wrong) reason?

Guess i'm just trying to keep things in order; I get edgie when it comes to newbies and using MQ correctly, I have nightmares and they keep recurring...
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 » How to disable a queue so that nobody can put messages
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.