| Author | Message | 
		
		  | gowdy | 
			  
				|  Posted: Tue Sep 11, 2001 12:29 am    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 17 Jul 2001Posts: 29
 Location: Bournemouth, UK
 
 | 
			  
				| Hi 
 Does anyone know of any node that exists out there that allows the automatic stop of an MQ queue?  We want to do something like this for exception handling (ie, if we have a number of messages that are going to error, we want to stop the input queue for those messages)
 
 Thanks
 
 Mark
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | EddieA | 
			  
				|  Posted: Thu Sep 13, 2001 12:47 pm    Post subject: |   |  | 
		
		  |  Jedi
 
 
 Joined: 28 Jun 2001Posts: 2453
 Location: Los Angeles
 
 | 
			  
				| Mark, 
 You could always put out a PCF message to the SYSTEM.ADMIN.COMMMAND.QUEUE to achieve this.
 
 Take a look at the Programmable System Management manual for details about PCF.
 
 Cheers.
 
 _________________
 Eddie Atherton
 IBM Certified Solution Developer - WebSphere Message Broker V6.1
 IBM Certified Solution Developer - WebSphere Message Broker V7.0
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | zpat | 
			  
				|  Posted: Mon Sep 24, 2001 7:42 am    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 19 May 2001Posts: 5867
 Location: UK
 
 | 
			  
				| There is an article about MQSI exception handling in Xephon's MQ Update (issues 27 and 2  see http://www.xephon.com (but not free). 
 You can issue an MQSI-like XML message to stop the message flow which is pretty simple and short, but not officially supported. The example below would need your uuid values determined and inserted into the message:
 
 
 
   
	| Code: |  
	| <Broker uuid="1234" label="Broker1" version="1">
 <ExecutionGroup uuid="5678">
 <Stop>
 <MessageFlow uuid="9101112"/>
 </Stop>
 </ExecutionGroup>
 </Broker>
 
 |  
 And sent to SYSTEM.BROKER.ADMIN.QUEUE with format "xml", message type of MQMT_REQUEST, ReplytoQ (yours) ReplytoQMgr (yours), Messageid MQMI_NONE, Report of MQRO_COPY_MSG_ID_TO_CORREL_ID, CCSID = 1208, Persistence MQPER_PERSISTENCE_AS_Q_DEF
 
 The article in issue 28 gives the source for a PCF program to get-inhibit the queue which is a documented method. Sorry I can't show it here it's too long.
 
 [ This Message was edited by: zpat on 2001-09-24 08:45 ]
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | gowdy | 
			  
				|  Posted: Thu Oct 11, 2001 1:38 am    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 17 Jul 2001Posts: 29
 Location: Bournemouth, UK
 
 | 
			  
				| Hi Eddie 
 I have been looking at issuing a PCF message to the SYSTEM.ADMIN.COMMAND.QUEUE, but cannot see a command for stopping a Queue or a Queue Manager.  Would I need to stop the channel?  Any help would be appreciated - it may be a daft thing to say, but know almost nothing about MQSeries, even though using Workflow and MQSI.
 
 Regards
 
 Mark
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | EddieA | 
			  
				|  Posted: Thu Oct 11, 2001 8:07 am    Post subject: |   |  | 
		
		  |  Jedi
 
 
 Joined: 28 Jun 2001Posts: 2453
 Location: Los Angeles
 
 | 
			  
				| Mark, 
 There's no real concept of Stopping and Starting queues in MQSeries.  For this question, I would simply make the queue 'Get Disabled'.
 
 As for stopping the queue manager.  I've not checked, but I'm not surprised that there is no programatic way of doing this.  A little like sawing off the branch you are sitting on.
 
 Cheers.
 
 _________________
 Eddie Atherton
 IBM Certified Solution Developer - WebSphere Message Broker V6.1
 IBM Certified Solution Developer - WebSphere Message Broker V7.0
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | gowdy | 
			  
				|  Posted: Fri Oct 12, 2001 12:15 am    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 17 Jul 2001Posts: 29
 Location: Bournemouth, UK
 
 | 
			  
				| Eddie, 
 Thanks for that - sounds like a good idea.  As for stopping the queue manager, tried it and it works - I have been often known to saw off the branch whilst sitting on it, even if that branch is 100 feet off the ground.  Must learn more MQSeries!
 
 Kind regards
 
 Mark
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |