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

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();
	}
}
特記事項 | 商標 | ダウンロード | ライブラリー | サポート | フィードバック

Copyright IBM Corporation 1999, 2013Copyright IBM Corporation 1999, 2013.

        
        最終更新
        
        最終更新 : 2013-02-27 19:18:16


概念トピック概念トピック | バージョン 8.0.0.2 | ac30420_