IBM BPM, V8.0.1, All platforms > Programming IBM BPM > Enterprise Service Bus programming > WebSphere MQ binding > Access the WebSphere MQ header

Use a mediation flow component to access the WebSphere MQ header

In WebSphere ESB, the MQ Header Setter mediation primitive provides a mechanism for managing MQ headers in a message.

You can change, copy, add, or delete WebSphere MQ headers by setting the mediation primitive properties as shown in Figure 1.

Figure 1. MQ Header Setter mediation primitive properties

If you need to change multiple headers, you can set multiple actions. Multiple actions are processed sequentially, in the order you specify. The MQ Header Setter mediation primitive does not provide control of the MQMD header, which you can change using the MessageElementSetter, and Mapping mediation primitives.

Although you can modify all fields of the MQMD within a mediation flow component, the WebSphere MQ binding overrides some of the fields, when the message is sent to WebSphere MQ. The following list of fields, override by default:

You can propagate the following list of MQMD fields by setting the custom property MDCTX=SET_ALL_CONTEXT on the Java Naming and Directory Interface (JNDI) queue definition, as specified in the import or export:

You can propagate the following list of MQMD fields by editing message configuration properties on the WebSphere MQ Import binding:

You cannot propagate the following MQMD fields to the outbound WebSphere MQ message:

Access the WebSphere MQ header