| Author | Message | 
		
		  | Carla Viragh | 
			  
				|  Posted: Tue Nov 11, 2003 10:46 am    Post subject: Default queue manager (Windows) |   |  | 
		
		  |  Voyager
 
 
 Joined: 31 Oct 2003Posts: 92
 Location: São Paulo - Brasil
 
 | 
			  
				| I have 2 QM under windows 2000 and now I´d like to turn one of them as a default queue manager. Checking the "make this the default queue manager" in services properties is the same as nothing... The check box is unchecked when I try to confirm the selection. I tried to create another QM, a new QM, using the -q attribute and the message is: The queue manager was created but it could not be defined as default! As a last try, I configured the registry key "defaultqueuemanager" but I can´t start the queue manager anymore, the event viewer shows this error:
 
 Unknown attribute  at SOFTWARE\IBM\MQSeries\CurrentVersion\Configuration\ in the configuration data.
 
 Key SOFTWARE\IBM\MQSeries\CurrentVersion\Configuration\ in the configuration data contained an attribute called  that is not valid.  This attribute is not recognized in this context.
 
 Check the contents of the configuration data and retry the operation.
 
 What could be the problem?
 
 Thanks very much
  _________________
 Carla Viragh
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Prahasith | 
			  
				|  Posted: Tue Nov 11, 2003 11:03 am    Post subject: |   |  | 
		
		  |  Disciple
 
 
 Joined: 16 May 2003Posts: 184
 Location: Kansas City
 
 | 
			  
				| Remove the HKEY_LOCAL_MACHINE\SOFTWARE\IBM\MQSeries\CurrentVersion\Configuration\QueueManager key from the registry
 and try creating a new queue manager
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Carla Viragh | 
			  
				|  Posted: Tue Nov 11, 2003 11:08 am    Post subject: |   |  | 
		
		  |  Voyager
 
 
 Joined: 31 Oct 2003Posts: 92
 Location: São Paulo - Brasil
 
 | 
			  
				| I can´t do this... I have 2 QM very important in this machine! Or you mean to remove the defaulqueuemanager key?
 _________________
 Carla Viragh
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | emiranda | 
			  
				|  Posted: Tue Nov 11, 2003 11:27 am    Post subject: |   |  | 
		
		  |  Disciple
 
 
 Joined: 21 Nov 2002Posts: 196
 Location: Dublin, Ireland
 
 | 
			  
				| Hi Carla, 
 After you've checked the "Make queue manager the default" box, you should stop and restart the queue manager for the change to take effect.
 
 Boa sorte!
  _________________
 Warm Regards,
 EM
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Carla Viragh | 
			  
				|  Posted: Tue Nov 11, 2003 11:40 am    Post subject: |   |  | 
		
		  |  Voyager
 
 
 Joined: 31 Oct 2003Posts: 92
 Location: São Paulo - Brasil
 
 | 
			  
				| No... The manual says that we need to change this attibute with the QM stopped, and it is. I´ve tried to stop/change/start/restart windows... The "apply" button doesn´t become available when I check the "make the deault qm". I think the changes don´t take any effect. 
 A coisa tá preta
   
 Obrigada.
 _________________
 Carla Viragh
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | emiranda | 
			  
				|  Posted: Tue Nov 11, 2003 11:56 am    Post subject: |   |  | 
		
		  |  Disciple
 
 
 Joined: 21 Nov 2002Posts: 196
 Location: Dublin, Ireland
 
 | 
			  
				| So, as you changed the REGISTRATION KEY directly, the integrity could be affected... 
 Is the queue manager running? If yes, calm down!
 
 In a proper time, make a backup of your objects (you can use the ms03 support pack, at http://www-3.ibm.com/software/integration/support/supportpacs/individual/ms03.html), after that, you can delete / recreate your queue manager and run the script generated by ms03 backup again!
 
 If the qm is not running, so you could just recreate it!
 
 Does it make sense for you?
 _________________
 Warm Regards,
 EM
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | JasonE | 
			  
				|  Posted: Wed Nov 12, 2003 6:35 am    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 03 Nov 2003Posts: 1220
 Location: Hursley
 
 | 
			  
				| The default queue manager property only impacts applications trying to connect to the qmgr, so the only 'integrity' issues are if you had an application which may have issued an MQCONN and gone to the wrong place. I am very hesitant to say they have to recreate their queue manager just for that. 
 There is a problem with modifying the registry directly. Firstly amqmsrvn has an in memory image of what the values are and that is what the GUI will show, and since amqmsrvn doesnt end until the service ends (and sometimes longer), the gui will no longer represent what is in the registry. Similarly, when it ends, it rewrites its image over the top of any changed you make and hence sets it back to the value it thinks it is!
 
 Secondly you need to ensure it gets given the right security - if you change it when the service is not running, "amqmdain regsec" will reapply the correct security.
 
 As to the original problem, are you sure that MQ has write ability on the registry? When I make the change it gets saved immediately (5.3 csd05), so perhaps as an experiment run filemon (www.sysinternals.com) just before changing the default qmgr and see if you can see 'Access Denied' errors trying to create the key
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Carla Viragh | 
			  
				|  Posted: Wed Nov 12, 2003 8:58 am    Post subject: |   |  | 
		
		  |  Voyager
 
 
 Joined: 31 Oct 2003Posts: 92
 Location: São Paulo - Brasil
 
 | 
			  
				| I didn´t find errors in filemon. I believe that MQ has the permission to write registry because all changes are mirrored to registry... I don´t know what else could be...
 _________________
 Carla Viragh
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | JasonE | 
			  
				|  Posted: Wed Nov 12, 2003 9:49 am    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 03 Nov 2003Posts: 1220
 Location: Hursley
 
 | 
			  
				| Sorry Carla, I meant regmon not filemon (D'oh!). When you click ok on the panel and we apply the change we should mirror it directly to the registry. If this isnt happening, either we are failing for some reason OR not attempting to do it. I would expect the first, and the only cause I have seen for this in the past is security. 
 Out of interest run amqmdain regsec and try again - does the change (made via the gui) get mirrored now?
 
 You can send me the regmon log of you clicking ok if you want, I'll drop you a message with my email in it.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Carla Viragh | 
			  
				|  Posted: Wed Nov 12, 2003 11:45 am    Post subject: |   |  | 
		
		  |  Voyager
 
 
 Joined: 31 Oct 2003Posts: 92
 Location: São Paulo - Brasil
 
 | 
			  
				| I don´t know if I got the idea, but... 
 Regmon shows success to all registry modifications (I will send you the log, anyway).
 
 The command amqmdain reg * -c display -s DefaultQueueManager -v * shows this error: Invalid stanza 'DefaultQueueManager' specified for All Queue Managers.
 
 I see the stanza in registry.
 
 I don´t know how to create it. Woul it be like this?
 
 amqmdain reg * -c add -s DefaultQueueManager -v CARLA ?????
 (CARLA is my QMName)
 
 Thanks very much for your assistance
 _________________
 Carla Viragh
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | JasonE | 
			  
				|  Posted: Thu Nov 13, 2003 12:45 am    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 03 Nov 2003Posts: 1220
 Location: Hursley
 
 | 
			  
				| Dont ask... The code is case sensitive in this, and has the wrong case... Try with a lower case 'm':
 amqmdain reg * -c display -s DefaultQueuemanager -v *
 
 I would also try 'amqmdain regsec' anyway top see if it makes a difference
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Carla Viragh | 
			  
				|  Posted: Thu Nov 13, 2003 4:25 am    Post subject: |   |  | 
		
		  |  Voyager
 
 
 Joined: 31 Oct 2003Posts: 92
 Location: São Paulo - Brasil
 
 | 
			  
				| Realy... The manual says DefaultQueueManager and my registry has a entry DefaultQueueManager but amqmdain only shows it if I enter the stanza DefaultQueuemanager. 
 I created (using amqmdain) the attribute and value DefaultQueuemanager=CARLA under stanza DefaultQueueManager, it didn´t work...
 
 I tried to create a new stanza DefaultQueuemanager, attib and values DefaultQueuemanager=CARLA, no success...
 
 I think that the attribute isn´t DefaultQueuemanager, I need to insert a diferent attribute under stanza DefaultQueuemanager that I don´t know.
 
 Someone, that have 2 QM (one as default) could see in registry the correct attribute that MQ inserts? Remember to see the lower cases!
 
 Thanks.
 
 (To Emiranda: I recreated my QMs using saveqmgr tool. I defined my first QM as default (-q attrib) but the message was that it was created but couldn´t be possible to create as default queue manager).
 _________________
 Carla Viragh
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Nathan | 
			  
				|  Posted: Thu Nov 13, 2003 4:54 am    Post subject: |   |  | 
		
		  |  Acolyte
 
 
 Joined: 15 Sep 2003Posts: 52
 Location: Rochester, NY
 
 | 
			  
				| Create a key under QueueManager (in regedit) called DefaultQueueManager 
 Create a new String called name and equal to QMgrName
 
 Hope that works for you.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Carla Viragh | 
			  
				|  Posted: Thu Nov 13, 2003 5:42 am    Post subject: |   |  | 
		
		  |  Voyager
 
 
 Joined: 31 Oct 2003Posts: 92
 Location: São Paulo - Brasil
 
 | 
			  
				| I created the key DefaultQueueManager you suggested under QueueManager, string name QMgrName and value CARLA, but I think that DefaultQueueManager needs to be under Configuration... I tried both, no success. 
 I will give up
   
 Did you see it in your environment?
 _________________
 Carla Viragh
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Nathan | 
			  
				|  Posted: Thu Nov 13, 2003 5:59 am    Post subject: |   |  | 
		
		  |  Acolyte
 
 
 Joined: 15 Sep 2003Posts: 52
 Location: Rochester, NY
 
 | 
			  
				| Sorry the string should be called name  and should be equal to CARLA   
 And, yes, I see it in mine.
 
 Key:
 
 
   
	| Code: |  
	| HKEY_LOCAL_MACHINE\SOFTWARE\IBM\MQSeries\CurrentVersion\Configuration\DefaultQueueManager |  
 String:
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |