WebSphere WebSphere Enterprise Service Bus, Version 6.0.2 Operating Systems:

Accessing WebSphere MQ header information in the SMO

You can access WebSphere MQ header content information using XPath expressions that navigate the Service Message Object (SMO).

Introduction

You can access and update the content in the WebSphere MQ header structures using mediation primitives. Most mediation primitives let you navigate messages using XPath expressions. If you do this, you must make sure that the XPath identifies the particular header that the primitive is interested in. If you implement your own custom mediation primitive then you can access message information from Java code.

XPath examples

The following XPath accesses a property in the <usr> folder of an RFH2 header:
/headers/MQHeader/header/rfh2/folder[name="usr"]/property[name="prop"]/value
The following XPath accesses a user-defined header, identifying the header instance by its format identifier:
/headers/MQHeader/header[format=”MYHDR”]/value/mydata
The following XPath identifies the header by index rather than by format:
/headers/MQHeader/header[2]/value/mydata

Reference topic

Terms of Use | Rate this page

Timestamp iconLast updated: 29 Oct 2006
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.wbit.help.medprim602.doc\ref\rwesb_SMOandMQ.html

(C) Copyright IBM Corporation 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)