ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQGet Node in WebSphere Message Broker version 6

Post new topic  Reply to topic
 MQGet Node in WebSphere Message Broker version 6 « View previous topic :: View next topic » 
Author Message
vedbhat
PostPosted: Tue May 16, 2006 6:46 am    Post subject: MQGet Node in WebSphere Message Broker version 6 Reply with quote

Disciple

Joined: 19 Mar 2002
Posts: 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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
wschutz
PostPosted: Tue May 16, 2006 7:14 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

This might help:
Quote:
In summary:
${inputMQParmsLocation}
QueueName: Optional override for MQGet Node Property Queue Name.
InitialBufferSize: Optional override for MQGet Node Property Initial Buffer Size.
MQGMO.*: Optional MQ Get message options the MQGet Node will use.

from:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac34680_.htm
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
vedbhat
PostPosted: Thu May 25, 2006 4:00 am    Post subject: Reply with quote

Disciple

Joined: 19 Mar 2002
Posts: 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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
jefflowrey
PostPosted: Thu May 25, 2006 4:23 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 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
View user's profile Send private message
vedbhat
PostPosted: Thu May 25, 2006 5:02 am    Post subject: Reply with quote

Disciple

Joined: 19 Mar 2002
Posts: 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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
jefflowrey
PostPosted: Thu May 25, 2006 5:10 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 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
View user's profile Send private message
vedbhat
PostPosted: Thu May 25, 2006 5:13 am    Post subject: Reply with quote

Disciple

Joined: 19 Mar 2002
Posts: 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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
wschutz
PostPosted: Thu May 25, 2006 8:02 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Well, you could always write your own java compute node to get all the messages ...
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQGet Node in WebSphere Message Broker version 6
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.