| Author | Message | 
		
		  | vedbhat | 
			  
				|  Posted: Tue May 16, 2006 6:46 am    Post subject: MQGet Node in WebSphere Message Broker version 6 |   |  | 
		
		  |  Disciple
 
 
 Joined: 19 Mar 2002Posts: 186
 Location: Singapore
 
 | 
			  
				| I am trying to use MQGet node in Message Broker 6. I need to pass the Queue Name dynamically for the MQGet node rather than hardcoding/predefined. 
 I tried the same as it was supported in the Support Pacs but couldn't get it working. Can any one tell me how can we pass Queue name dynamically for the MQGet node.
 
 The manual talks about generating the creating MQGMO but could find any sample or details as how we could create the MQGMO.
 
 Thanks in advance.
 
 Regards,
 Ved
 _________________
 IBM Certified Solutions Expert - MQSeries Workflow
 IBM Certified Specialist - MQSeries
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | wschutz | 
			  
				|  Posted: Tue May 16, 2006 7:14 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 02 Jun 2005Posts: 3316
 Location: IBM (retired)
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | vedbhat | 
			  
				|  Posted: Thu May 25, 2006 4:00 am    Post subject: |   |  | 
		
		  |  Disciple
 
 
 Joined: 19 Mar 2002Posts: 186
 Location: Singapore
 
 | 
			  
				| Hi, 
 I have specified Queue Name on the MQGet Node to "INQ3" and specified the Queue Name dynamically as shown below,
 
 SET Environment.MQGet.InputParams.MQGMO.QueueName = 'INQ2';
 
 along with other parameters to read all the messages from the queue without using Message Id or Correlation Id.
 
 SET Environment.MQGet.InputParams.MQGMO.Version = MQGMO_CURRENT_VERSION;
 SET Environment.MQGet.InputParams.MQGMO.GroupStatus = MQGS_NOT_IN_GROUP;
 SET Environment.MQGet.InputParams.MQGMO.MatchOptions = MQMO_NONE;
 SET Environment.MQGet.InputParams.MQGMO.MsgToken = MQMTOK_NONE;
 SET Environment.MQGet.InputParams.MQGMO.Options = MQGMO_ALL_MSGS_AVAILABLE;
 
 I also provided a value of "Environment.MQGet.InputParams" to "Input MQ Parameters Location" property of MQGet Node. However, MQGet reads a single message from the queue "INQ3" which is predefined in the property rather than reading all the messages from the queue "INQ2".
 
 Anybody tried using MQGet node to read all the messages from a queue whose name is passed dynamically rather than predefining.
 _________________
 IBM Certified Solutions Expert - MQSeries Workflow
 IBM Certified Specialist - MQSeries
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Thu May 25, 2006 4:23 am    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| 
   
	| vedbhat wrote: |  
	| SET Environment.MQGet.InputParams.MQGMO.QueueName = 'INQ2'; |  Read wayne's quote of the documentation again.
 
 QueueName is not a child of MQGMO.  It's a child of Environment.MQGet.InputParams (by default).
 _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | vedbhat | 
			  
				|  Posted: Thu May 25, 2006 5:02 am    Post subject: |   |  | 
		
		  |  Disciple
 
 
 Joined: 19 Mar 2002Posts: 186
 Location: Singapore
 
 | 
			  
				| How I get to read all the messages from the queue rather than a single message (first message). _________________
 IBM Certified Solutions Expert - MQSeries Workflow
 IBM Certified Specialist - MQSeries
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Thu May 25, 2006 5:10 am    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| Read the documentation on the Node again. 
 Consider building a loop.
 _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | vedbhat | 
			  
				|  Posted: Thu May 25, 2006 5:13 am    Post subject: |   |  | 
		
		  |  Disciple
 
 
 Joined: 19 Mar 2002Posts: 186
 Location: Singapore
 
 | 
			  
				| Is that the only way? Looks like its ridiculous. I think the plugin was better in that case? Any reason why it is built that way? _________________
 IBM Certified Solutions Expert - MQSeries Workflow
 IBM Certified Specialist - MQSeries
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | wschutz | 
			  
				|  Posted: Thu May 25, 2006 8:02 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 02 Jun 2005Posts: 3316
 Location: IBM (retired)
 
 | 
			  
				| Well, you could always write your own java compute node to get all the messages ... _________________
 -wayne
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |