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, 2012Copyright IBM Corporation 1999, 2012.

        
最終更新

        最終更新 : 2012-07-13 15:40:27


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