Author |
Message
|
E-gore |
Posted: Wed May 10, 2006 4:40 am Post subject: How to limit QMgr to only one specific channel |
|
|
Newbie
Joined: 10 May 2006 Posts: 3
|
Hello,
I want to limit my QMgr to only one specific channel.
I added a stanza named "Channels:" in the qm.ini file and a property MaxChannels with the value 1. And it really limits the qmgr to only one channel.
But I don't know how I can start a specific channel when the QMgr starts.
When I start my QMgr, it starts a channel, but a diffrent one, from the channel that I want to start.
My QMgr is running on an AIX 5.3. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 10, 2006 4:42 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If you manually STOP every channel but the one you want, then those channels will never START on their own. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wschutz |
Posted: Wed May 10, 2006 4:46 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
hummm... why not just have ONE channel defined in the qmgr? _________________ -wayne |
|
Back to top |
|
 |
E-gore |
Posted: Wed May 10, 2006 5:29 am Post subject: |
|
|
Newbie
Joined: 10 May 2006 Posts: 3
|
Let's say I have a QMgr that is connected to other QMgrs, and for some reason it crashed. Now I want to start the QMgr without it connecting to other QMgrs, but I want it to start a server connection channel, so I could connect to my QMgr from a MQ Explorer, and other programs. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 10, 2006 6:10 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If the qmgr is down, then you can't control it.
You could temporarily disable the network, start the queue manager, stop the channels you don't want to start using runmqsc, and then reenable the network. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed May 10, 2006 1:47 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
E-gore wrote: |
Let's say I have a QMgr that is connected to other QMgrs, and for some reason it crashed. Now I want to start the QMgr without it connecting to other QMgrs, but I want it to start a server connection channel, so I could connect to my QMgr from a MQ Explorer, and other programs. |
and how are you gonna guarantee that u are the first one to connect?
max channels of one does not mean you can't have thousands of instances of that one channel running.
if u really did cap the QM at one active channel, how would you connect to it with MQExplorer to do what you want to do if another app is connected?
Max Active Channels = 1 is bad news.......Jeff's idea is about the only way I can think of preventing a QM from connecting to others atomatically if there are any messages in the XMITQs to or from this QM.
Y do u want to prevent the QM from connecting post crash??? _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 10, 2006 7:53 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
If you want to avoid getting additional messages posted to the qmgr post crash do not start any listener. Easier done if running runmqlsr.
If starting it from inside the qmgr (V6) or from inetd you have to go jeff's route by isolating the box from the network before shutting down the channels.
Enjoy _________________ MQ & Broker admin |
|
Back to top |
|
 |
|