Author |
Message
|
claire |
Posted: Mon Jul 18, 2005 7:26 pm Post subject: How to disable a queue so that nobody can put messages |
|
|
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 |
|
 |
fjb_saper |
Posted: Mon Jul 18, 2005 7:28 pm Post subject: |
|
|
 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 |
|
 |
hopsala |
Posted: Tue Jul 19, 2005 6:04 am Post subject: |
|
|
 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 |
|
 |
bower5932 |
Posted: Tue Jul 19, 2005 6:57 am Post subject: |
|
|
 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 |
|
 |
paulgroo |
Posted: Tue Jul 19, 2005 7:07 am Post subject: OS |
|
|
 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 |
|
 |
jefflowrey |
Posted: Tue Jul 19, 2005 7:09 am Post subject: |
|
|
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 |
|
 |
hopsala |
Posted: Tue Jul 19, 2005 12:51 pm Post subject: |
|
|
 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 |
|
 |
|