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

Post new topic  Reply to topic
 MQGet Node « View previous topic :: View next topic » 
Author Message
cvag
PostPosted: Mon Mar 31, 2008 3:10 am    Post subject: MQGet Node Reply with quote

Centurion

Joined: 17 Mar 2008
Posts: 127

I'm doing the sample scenario using MQGet Node
My flow is MQInput--->MQGet--->Compute--->MQOutput
I'm sending the first input: <numbers><fno>5</fno></numbers> through MQInput and secong input: <numbers><sno>5</sno></numbers> through MQGet
And i'm expecting the sum of two no's, in computenode i have written the code as the sum of two numbers as result = fno+sno in xml
The output should be as <numbers><result>10</result></numbers>
I'm not getting the output
Pls help what are the properties should i configure in MQGet in getting the result.

Thanks in Advance
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 31, 2008 3:18 am    Post subject: Re: MQGet Node Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

cvag wrote:
I'm not getting the output
Pls help what are the properties should i configure in MQGet in getting the result.


You need 2 things configured:

- match options (or not) for the message in the MQGet
- how the MQGet is to place this information in the Output message tree

Given the lack of information you've posted it's hard to tell what's wrong, but I would assume the message is flowing out of the expected node of the MQGet, so it's finding a message. If it's finding the message you expect is anyone's guess.

Given that, I'd again assume the information from the 2nd message is not where you're assuming it is in the output tree. Check how the node is set, and/or put a Trace node in the flow to show what the tree looks like.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
cvag
PostPosted: Mon Mar 31, 2008 4:00 am    Post subject: Reply with quote

Centurion

Joined: 17 Mar 2008
Posts: 127

Thanks
But i'm not able to configure how to set the properties using these two inputs in Output data Location and Result data Location
Please give me the suggestion whether we can get the result using this flow bcoz i have one doubt that, first input from MQInput is replaced by MQGet input?
Back to top
View user's profile Send private message
Gaya3
PostPosted: Mon Mar 31, 2008 4:04 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

first of try with out MQGet node, lets see the message is propagating to output node

MQGET
The node analyzes the completion code (CC), and propagates the message to the appropriate terminal

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 31, 2008 4:22 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

cvag wrote:
But i'm not able to configure how to set the properties using these two inputs in Output data Location and Result data Location


Why not?

cvag wrote:
Please give me the suggestion whether we can get the result using this flow bcoz i have one doubt that, first input from MQInput is replaced by MQGet input?


Well if that's what you've told it to do. There could be situations where you'd want that I suppose, but typically you'd be enriching an existing messages already travelling through the flow with a new one. That certainly seems to be your intention here, so I'm unclear why you'd want to replace the existing input.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Mar 31, 2008 5:18 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

"Output Data Location" is "where in the new output message should the data from the message on the queue go".

"Result Data Location" is "what location in the data from the message on the queue be put into the Output Data Location".
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Mon Mar 31, 2008 7:51 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

I have no idea where you got your sample.

I will assume you want to match on correlation ID from MQInput in the MQGet.

On the 'Request' tab, I checked 'Get by correlation ID'.
On the 'Result' tab in the 'Output data location', I put 'InputLocalEnvironment.MyData'.
In my Compute node that came after this (out->in), I accessed the data at 'InputLocalEnvironment.MyData'.

So this is where you will do the combining of your data to make whatever output you want. The original message is exactly where it was from the MQInput node.

Since I got this to work, I have no doubts what so ever that the MQGet node works fine.
_________________
Joseph
Administrator - IBM WebSphere MQ (WMQ) V6.0, IBM WebSphere Message Broker (WMB) V6.1 & V6.0
Solution Designer - WMQ V6.0
Solution Developer - WMB V6.1 & V6.0, WMQ V5.3
Back to top
View user's profile Send private message 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
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.