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 » simple java compute node

Post new topic  Reply to topic
 simple java compute node « View previous topic :: View next topic » 
Author Message
spider
PostPosted: Wed Nov 08, 2006 11:01 pm    Post subject: simple java compute node Reply with quote

Novice

Joined: 19 Feb 2006
Posts: 23

Hi,

I'm kinda new to java compute.
Am trying to use a simple java compute where an xml string need to be passed as output from the java compute node.

I tried with the following code, but it does not return any output.

public class TMP_MF_JavaCompute extends MbJavaComputeNode {
public void evaluate(MbMessageAssembly assembly) throws MbException {
MbOutputTerminal out = getOutputTerminal("out");

MbMessage message = assembly.getMessage();
MbMessage outMessage = new MbMessage();
MbMessageAssembly outAssembly = new MbMessageAssembly (assembly, outMessage);

try
{
MbElement root = outMessage.getRootElement();

MbElement mqmd = root.createElementAsFirstChild("test");
mqmd.createElementAsFirstChild(MbElement.TYPE_NAME_VALUE, "Format", "XML");
}
catch (Exception e)
{e.printStackTrace();}

out.propagate(outAssembly);
}
}

Plss tell me wat kind of modification i need to do to send out a string.

Thanks in advance...
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Nov 09, 2006 3:37 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Read the manual, look at the samples, copy the message headers, etc...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
spider
PostPosted: Thu Nov 09, 2006 5:24 am    Post subject: Reply with quote

Novice

Joined: 19 Feb 2006
Posts: 23

May i atleast know which manual to refer for this???????

As i said, am new to this...
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Nov 09, 2006 5:32 am    Post subject: Reply with quote

Grand High Poobah

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

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp

There's a novel feature in the Infocenter - IBM are calling it "Search". It's like Google (where I found the link) but it focuses on material in the manuals.

It'll never catch on....
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » simple java compute 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.