| Author | 
		  Message
		 | 
		
		  | msunil | 
		  
		    
			  
				 Posted: Thu Oct 25, 2007 12:44 pm    Post subject: Custom priority for MQMD | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 25 Oct 2007 Posts: 3
  
  | 
		  
		    
			  
				Hello all,
 
           one of our application requires message priorities from 0-99. Is there a way to change the maximum priority available from 9 to 99? I figured even though you set the MQMD.Priority to 76, WMQ treats all the messages that has priority more than 9 as proiority 9. But I want the application to pickup the messages in the priority order that was set in MQMD.priority.
 
 
Thanks
 
S | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Thu Oct 25, 2007 12:59 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				No.
 
 
MAXPRTY is 9. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Thu Oct 25, 2007 1:05 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				Well.
 
 
Hrm.
 
 
   
	| Quote: | 
   
  
	| If a message is put with a priority greater than the maximum supported by the local queue manager (this maximum is given by the MaxPriority queue-manager attribute), the message is accepted by the queue manager, but placed on the queue at the queue manager's maximum priority; the MQPUT or MQPUT1 call completes with MQCC_WARNING and reason code MQRC_PRIORITY_EXCEEDS_MAXIMUM. However, the Priority field retains the value specified by the application that put the message. | 
   
 
 
 
So you should be able to set a priority greater than 9, and have the message retain this.
 
 
However, all messages at priority greater than 9 will be treated as the same priority. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | msunil | 
		  
		    
			  
				 Posted: Thu Oct 25, 2007 1:08 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 25 Oct 2007 Posts: 3
  
  | 
		  
		    
			  
				Thanks for your replyb Jeff. If that is the case then can we change MaxPriority attribute of the queue-manager to 99 or the default max priority for the WMQ product itself is 9?
 
 
Thanks
 
S | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Thu Oct 25, 2007 1:36 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| msunil wrote: | 
   
  
	Thanks for your replyb Jeff. If that is the case then can we change MaxPriority attribute of the queue-manager to 99 or the default max priority for the WMQ product itself is 9?
 
 
Thanks
 
S | 
   
 
 
The field is read only. The max priority of the product is 9. _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |