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();
	}
}
관련 참조
JavaCompute 노드
주의사항 | 등록상표 | 다운로드 | 라이브러리 | 지원 | 피드백
Copyright IBM Corporation 1999, 2006 마지막 갱신 날짜: 2006/08/21
ac30420_