WebSphere Message Broker バージョン 8.0.0.5 オペレーティング・システム: AIX、HP-Itanium、Linux、Solaris、Windows、z/OS

製品の最新バージョンについては、IBM Integration Bus バージョン 9.0 をご覧ください。

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

        
        最終更新:
        
        最終更新: 2015-02-28 17:45:49


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