WebSphere Message Brokers
File: ac30360_
Writer: Catherine Tucker

Task topic

This build: July 31, 2007 21:20:11

Copying a message using a JavaCompute node

The incoming message and message assembly are read-only. In order to modify a message, a copy of the incoming message must be made. The Modifying Message Class template in the JavaCompute node wizard generates this copy. The following copy constructors are called:
 MbMessage outMessage = new MbMessage(inAssembly.getMessage);
 MbMessageAssembly outAssembly = new MbMessageAssembly(inAssembly, outMessage); 
The new outAssembly object is propagated to the next node.
Related tasks
Accessing elements in a message tree from a JavaCompute node
Related reference
JavaCompute node
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:20:11

ac30360_ This topic's URL is: