JavaCompute ノードを使用したメッセージ・ヘッダーのコピー

「JavaCompute ノード」ウィザード内の「変更メッセージ・クラス」テンプレートは、以下のコードを生成して、JavaCompute ノードを使用してメッセージ・ヘッダーをコピーします。
public void copyMessageHeaders(MbMessage inMessage, MbMessage outMessage) throws MbException
{
	MbElement outRoot = outMessage.getRootElement();
	MbElement header = inMessage.getRootElement().getFirstChild();

	while(header != null && header.getNextSibling() != null)
	{
		outRoot.addAsLastChild(header.copy());
		header = header.getNextSibling();
	}
}
関連資料
JavaCompute ノード
特記事項 | 商標 | ダウンロード | ライブラリー | サポート | フィードバック

Copyright IBM Corporation 1999, 2009Copyright IBM Corporation 1999, 2009.
最終更新 : 2009-02-20 12:43:02

ac30420_