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

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

JavaCompute ノードを使用した MQMD ヘッダーへのアクセス

WebSphere® MQ および WebSphere MQ Everyplace® メッセージには、MQMD ヘッダーが含まれています。 JavaCompute ノードを使用して、MQMD 内のフィールドを参照し、更新できます。

以下の Java™ コードは、MQMD ヘッダーをメッセージに追加する方法を示しています。
public void addMqmd(MbMessage msg) throws MbException
{
	MbElement root = msg.getRootElement();

	// create a top level 'parser' element with parser class name
	MbElement mqmd = root.createElementAsFirstChild("MQHMD");

	// specify next parser in chain
	mqmd.createElementAsFirstChild(MbElement.TYPE_NAME_VALUE,
		"Format",
		"XMLNS");
}
特記事項 | 商標 | ダウンロード | ライブラリー | サポート | フィードバック

Copyright IBM Corporation 1999, 2014Copyright IBM Corporation 1999, 2014.

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


タスク・トピックタスク・トピック | バージョン 8.0.0.5 | ac30430_