| Author |
Message
|
| Vitor |
Posted: Wed Dec 27, 2006 5:42 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
| scottj2512 wrote: |
PS. The "Name=P21916T" attribute has to be "Name" as I found that "name=P21916T" did not work  |
Why should this be the only part of WMQ not irritatingly case sensitive?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
| exerk |
Posted: Wed Dec 27, 2006 7:09 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
In which case I think I'm going to have to dig deeper!
When I run:
| Code: |
| amqmdain reg * -c add -s DefaultQueueManager -v Name=TEST |
It still gives me the 'Invalid stanza' error.
Name: WebSphere MQ
Version: 6.0.2.0
CMVC level: p600-200-060921
BuildType: IKAP - (Production)
Windows xp Pro, Build 2600.xpsp2.050301-1526:SP1
It does seem odd to me that a Registry hack is required, or defining a qmgr at build as a default. Here we don't use defaults except in rare cases (and becoming rarer) and WMQ Explorer is sometimes removed, in which case if the need arose to define a qmgr as default the Registry hack would be the only way. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
| Back to top |
|
 |
| Vitor |
Posted: Wed Dec 27, 2006 7:19 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
| exerk wrote: |
| Here we don't use defaults except in rare cases (and becoming rarer) |
My 2 cents - I never define default queue managers. Especially as experience has taught that if you define & use a default queue manager, sooner or later some chimp will define a new one and it will all go pear shaped. On at least 2 occassions I've been told it's perfectly possible to have 2 default queue managers on a single machine and it's reasonable to architect the solution to expect that... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
| exerk |
Posted: Wed Dec 27, 2006 7:39 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
'Made oi larf'...
We managed to 'break' a Windows-based app that relied on a def qmgr being defined. There was no documented definition of the setup, and the new boxes reverted to their 'default' qmgr as set in another part of the Registry...the same on every machine. Which is why we moved away from def qmgr's!
Still can't get the damn amqmdain thingy to work though  _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
| Back to top |
|
 |
| Vitor |
Posted: Wed Dec 27, 2006 7:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
| exerk wrote: |
Still can't get the damn amqmdain thingy to work though  |
Windows. Go figure.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
| pathipati |
Posted: Wed Dec 27, 2006 8:57 am Post subject: |
|
|
Master
Joined: 03 Mar 2006 Posts: 296
|
scottj2512 wrote:
| Code: |
| I'm not convinced that amqmdain can be used to change which queue manager is the default. |
me too.
| Code: |
| amqmdain reg * -c add -s DefaultQueueManager -v Name=P21916T |
How this will work.. |
|
| Back to top |
|
 |
| RogerLacroix |
Posted: Thu Dec 28, 2006 9:43 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3266 Location: London, ON Canada
|
Hi,
Sometimes brute force is the only way. Manually update the registry as follows:
| Code: |
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\IBM\MQSeries\CurrentVersion\Configuration\DefaultQueueManager]
"Name"="P21916T" |
Or if you save the above snippet to a file called setdefault.reg then you can do the following command on the server:
| Code: |
| regedit -s setdefault.reg |
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
| Back to top |
|
 |
| cksdva06 |
Posted: Tue Jan 16, 2007 6:18 pm Post subject: |
|
|
Newbie
Joined: 16 Jan 2007 Posts: 3 Location: Minneapolis, MN
|
Sorry for the late post...I ran into the same situation, then I put double quotes around the words DefaultQueueManager, Name and my QmgrName, it worked for me. So if you haven't got it to work, please try this:
amqmdain reg * -c add -s "DefaultQueueManager" -v "Name"="P21916T" |
|
| Back to top |
|
 |
| exerk |
Posted: Wed Jan 17, 2007 2:42 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
| cksdva06 wrote: |
Sorry for the late post...I ran into the same situation, then I put double quotes around the words DefaultQueueManager, Name and my QmgrName, it worked for me. So if you haven't got it to work, please try this:
amqmdain reg * -c add -s "DefaultQueueManager" -v "Name"="P21916T" |
Nope, still get the 'invalid stanza' error  _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
| Back to top |
|
 |
| cksdva06 |
Posted: Wed Jan 17, 2007 8:07 am Post subject: |
|
|
Newbie
Joined: 16 Jan 2007 Posts: 3 Location: Minneapolis, MN
|
I tested on a Windows 2000 machine with MQ 5.3 CSD10, it worked fine. But I got the same 'invalid stanza' error when tested on an XP machine with MQ 6.0...
5724-H72 (C) Copyright IBM Corp. 1994, 2004. ALL RIGHTS RESERVED.
Invalid stanza 'DefaultQueueManager' specified for All Queue Managers |
|
| Back to top |
|
 |
| cksdva06 |
Posted: Mon Jan 22, 2007 3:10 pm Post subject: |
|
|
Newbie
Joined: 16 Jan 2007 Posts: 3 Location: Minneapolis, MN
|
Someone else also encountered the same problem, but if you change the spelling of the DefaultQueueManager to DefaultQueuemanager, and that should take care of the issue.
D:\>amqmdain reg * -c add -s "DefaultQueuemanager" -v "Name"="LABQM"
5724-H72 (C) Copyright IBM Corp. 1994, 2004. ALL RIGHTS RESERVED.
Registry entry 'DefaultQueuemanager Name=LABQM' added successfully
Registry secured successfully |
|
| Back to top |
|
 |
| exerk |
Posted: Tue Jan 23, 2007 3:51 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Yep, worked finally. Can't wait for the next round of hunt-the-syntax  _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
| Back to top |
|
 |
|
|