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 limit QMgr to only one specific channel

Post new topic  Reply to topic
 How to limit QMgr to only one specific channel « View previous topic :: View next topic » 
Author Message
E-gore
PostPosted: Wed May 10, 2006 4:40 am    Post subject: How to limit QMgr to only one specific channel Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed May 10, 2006 4:42 am    Post subject: Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Wed May 10, 2006 4:46 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
E-gore
PostPosted: Wed May 10, 2006 5:29 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed May 10, 2006 6:10 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Wed May 10, 2006 1:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed May 10, 2006 7:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to limit QMgr to only one specific channel
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.