WebSphere

Accessing JMS information in the SMO

You can access JMS message information using XPath expressions that navigate the service message object (SMO).

Introduction

If you invoke a mediation module by sending a JMS message to an export with a JMS binding, you can access and update the JMS message using mediation primitives. Most mediation primitives let you navigate messages using XPath expressions. If you implement your own custom mediation primitive, you can access message information from Java™ code.

XPath examples

The following XPath accesses the body of a JMS message:
/body
The following XPath accesses the JMSMessageID in the JMS header:
/headers/JMSHeader/JMSMessageID
The following XPath accesses a JMSX property in the SMO header:
/headers/properties[name='JMSXGroupID']
The following XPath accesses a custom JMS property in the SMO header:
/headers/properties[name='MyProperty']

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_SMOandJMS.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).
iDoc on