WebSphere WebSphere Enterprise Service Bus, Version 6.0.2 Operating Systems:

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 then 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 within the JMS header:
/headers/JMSHeader/JMSMessageID
The following XPath accesses a JMSX property within the SMO header:
/headers/properties[name='JMSXGroupID']
The following XPath accesses a custom JMS property within the SMO header:
/headers/properties[name='MyProperty']

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_SMOandJMS.html

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