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 » how can I refer to output variables in javacompute node

Post new topic  Reply to topic
 how can I refer to output variables in javacompute node « View previous topic :: View next topic » 
Author Message
sandip_gaikwad
PostPosted: Mon Oct 03, 2011 9:53 pm    Post subject: how can I refer to output variables in javacompute node Reply with quote

Voyager

Joined: 25 Jul 2011
Posts: 95

I have created a flow in MB where I am getting an excel file which I have to insert in database.

I am getting the excel file though fileInput node the file is been read using java in JavaCompute node and I can see the data in Variables.
Now my problem is I cannot fetch those variables to my OutputRoot so that i can insert it into compute node
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Oct 04, 2011 12:46 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Please explain
a) what you have tried so far and
b) where you have looked for information
...otherwise we will either point you to pages that you have already read, or else we will tell you to do things that you have already done.
Back to top
View user's profile Send private message
sandip_gaikwad
PostPosted: Tue Oct 04, 2011 1:03 am    Post subject: Reply with quote

Voyager

Joined: 25 Jul 2011
Posts: 95

The problem is I want to retrieve that data from variables so that i can pass further to compute node
i tried to set it into MbElement but it is showing error.
I tried to create MRM in javacompute but it is not working
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Oct 04, 2011 3:03 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

sandip_gaikwad wrote:
i tried to set it into MbElement but it is showing error.
I tried to create MRM in javacompute but it is not working


What error?

What does "it is not working" mean?
Back to top
View user's profile Send private message
nukalas2010
PostPosted: Tue Oct 04, 2011 4:46 am    Post subject: Reply with quote

Master

Joined: 04 Oct 2010
Posts: 220
Location: Somewhere in the World....

sandip_gaikwad wrote:
The problem is I want to retrieve that data from variables so that i can pass further to compute node


For this, Can you try below..

Code:
//Get Environment
MbMessage oGlobalEnv = contact admin.getGlobalEnvironment();
MbElement oEnvironment =  oGlobalEnv.getRootElement();
//for Environment.Variables
MbElement oEnvVariables = oEnvironment.createElementAsFirstChild(MbElement.TYPE_NAME_VALUE,"Variables", null);


You can create the same like this under variables also if we want to store..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » how can I refer to output variables in javacompute 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.