WebSphere

Example: Accessing MQCIH header data

This example shows you how to access MQCIH header data in a message.

Context

The following information tells you about accessing the MQCIH header data within an inbound message.

Requirements

The message must contain valid MQCIH header data.

Basic flow of events

  1. The MQExport receives an inbound MQ request message, or the MQImport receives an inbound MQ response message. The message contains an MQCIH header.
  2. The MQExport or MQImport uses the MQCIH header data binding to parse the message, and propagates the data into the SCA MQHeader.
  3. Within a mediation, the MQCIH header data can be obtained from the MQHeader. The MQHeader has a value field, containing the MQCIH structure.

Results

There are several ways the MQCIH header data can be accessed and used from the MQHeader. For example, a user application can use a Message Logger mediation primitive to log the contents of the MQCIH, or use a Set Message Type mediation primitive to set the type of the value field to a MQCIH. A user application can also use a mapping node to copy data from the MQCIH to another field in the same message.

reference Reference topic

Terms of use | Feedback


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


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