WebSphere

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, 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 Reference topic

Terms of use | Feedback


Timestamp icon Last updated: 20 June 2010 00:40:00 BST (DRAFT)


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic//com.ibm.wbit.help.medprim620.doc/ref/rwesb_SMOandMQ.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).
iDoc on