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 » Can I call evaluate(MbMessageAssembly assembly) Method from

Post new topic  Reply to topic
 Can I call evaluate(MbMessageAssembly assembly) Method from « View previous topic :: View next topic » 
Author Message
yahmed@intercom.com.eg
PostPosted: Tue Apr 10, 2007 12:25 am    Post subject: Can I call evaluate(MbMessageAssembly assembly) Method from Reply with quote

Newbie

Joined: 10 Apr 2007
Posts: 2

public class GenerateXML_JavaCompute extends MbJavaComputeNode {

public void evaluate(MbMessageAssembly assembly) throws MbException {
MbOutputTerminal out = getOutputTerminal("out");
MbOutputTerminal alt = getOutputTerminal("alternate");

MbMessage message = assembly.getMessage();

// ----------------------------------------------------------

// HERE I WILL GENERATE XML MSG AND PROPAGATE IT TO MQOUTPOT NODE

// ----------------------------------------------------------


out.propagate(assembly);
}
}

***************************************************************** ***************

public static void main(String[] args) {
AlertApp conDb2 = new AlertApp();
Thread myThread = Thread.currentThread();

try {
GenerateXML_JavaCompute generate= new GenerateXML_JavaCompute();
MbMessageAssembly assembly = null;
try {
assembly = new MbMessageAssembly(assembly, null);
generate.evaluate(assembly);
} catch (MbException e) {

e.printStackTrace();
}

} catch (SQLException e1) {
e1.printStackTrace();
}
}

********************************************************************** **********
when i run this main method it throw ( Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/broker/trace/ ) when
GenerateXML_JavaCompute generate= new GenerateXML_JavaCompute();

any body have explanation to this exception?

if this is a wrong way to call eveluate method do you have other way?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 10, 2007 3:17 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yes, this is entirely the wrong way to call evaluate.

Broker will call evaluate FOR you.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
yahmed@intercom.com.eg
PostPosted: Tue Apr 10, 2007 3:26 am    Post subject: Reply with quote

Newbie

Joined: 10 Apr 2007
Posts: 2

Thanks for your reply.
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 » Can I call evaluate(MbMessageAssembly assembly) Method from
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.