Author |
Message
|
sebastia |
Posted: Tue Oct 30, 2007 9:27 am Post subject: automatic queue manager startup - created by script |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
When creating a queue manager using GUI, (Windows 2003 server)
thete is a checkbox to select
(*) automatic startup
or
(*) manual startup
When we create the QM using scripts, the startup is left in MANUAL,
and I see it can not be changed using MQSC.
How can I set it to AUTOMATIC ? ( using a Script )
Guess it has to be thru the Registry ... |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Oct 30, 2007 9:32 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
On Windows the right way to set this is via the MQExplorer GUI. I'm sure under the covers it probably sets some reg key. You could probably just find that key and change it, but should you do it that way? Probably not. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Oct 30, 2007 10:02 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
amqmdain is the way to go here... (why does that sound familiar?)
amqmdain auto <qmgrname> _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
sebastia |
Posted: Tue Oct 30, 2007 11:28 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Peter - GUI is not the way if you want to generate scripts automagically ...
Jeff - I used
\\HKLM\Software\IBM\MQSeries\CurrentVersion\Configuration\QueueManager\<nom>\InstanceData /v Startup /r REG_SZ /d 1
but your is better of course.
By the way -
"amqmdain" is here to stay or was it only a temporal solution (I heard) ... |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Oct 30, 2007 12:03 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
sebastia wrote: |
By the way -
"amqmdain" is here to stay or was it only a temporal solution (I heard) ... |
Here to stay AFAIK. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Oct 30, 2007 12:35 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
ammdain is the only supported way to update the registry on Windows for things that are not updatable in the MQ Explorer.
So, yeah, it's here to stay. It's been around since, what... 5.2? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
sebastia |
Posted: Tue Oct 30, 2007 10:11 pm Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
|
Back to top |
|
 |
|