We are trying to set MQMD Header that is coming as a part of incomming message in JavaCompute Node.Below is the code
//getting handle to out terminal
MbOutputTerminal out = getOutputTerminal("out");
//getting handle to alternate terminal
MbOutputTerminal alt = getOutputTerminal("alternate");
// getting handle to incomming message
MbMessage inMessage = contact admin.getMessage();
// getiing handle to rootelement of message
MbElement mqmdMsg = inMessage.getRootElement();
MbElement mqchild = mqmdMsg.getFirstChild();
MbElement mqhd = mqchild.getNextSibling();
// getting handle to Global Env Tree
MbMessage gEnv = contact admin.getGlobalEnvironment();
// creating new child in Global Env Tree and setting the MQMD stored in
// mqhd variable of type MbElement
gEnv.getRootElement().createElementAsFirstChild(MbElement.TYPE_NAME_VALUE,"InputMQMDHeader",mqhd);
// create new message
MbMessage outMessage = new MbMessage(inMessage);
MbMessageAssembly outAssembly = new MbMessageAssembly(contact admin,outMessage);
The problem we are facing is when the control comes out of JCN we are not able to see the MQMD in Environment var.
Please let us know where we are going wrong.Its the requirement to do in JCN only not to go for Compute Node.
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