JavaCompute 노드를 사용하여 MQMD 헤더에 액세스

WebSphere MQ, WebSphere MQ Everyplace 및 SCADA 메시지는 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, 2006 마지막 갱신 날짜: 2006/08/21
ac30430_