IBM Support

The MQ binding response Message ID is not getting set with "Copy from the Request Message ID" option

Troubleshooting


Problem

The desired behavior in a particular scenario is to have the response Message ID be the same as the request message. The appropriate configuration of "Response Message ID: Copy from the Request Message ID." is selected. However, the Message ID of the response message does not have the desired value, but a different, random value.

Cause

To be able to set the Message ID, the JMS destination queue needs to have the property 'MQMD WRITE ENABLE" set to ENABLED. This property allows a JMS application to set the value of the MQMD fields.

If the messaging resources on the server have been created manually, certain custom properties might not have been set correctly. This corresponds to using the Specify the JNDI for the pre-configured WebSphere MQ resources option.

Resolving The Problem

For all JMS queue resources that are created manually for use with an MQ binding, set the following custom properties:

For Send Destinations:

Custom Property Name: MDWRITE Value: YES

Custom Property Name: MSGBODY Value: MQ

Custom Property Name: MDMSGCTX Value: SET_ALL_CONTEXT

For Receive Destinations:

Custom Property Name: MDREAD Value: YES

Custom Property Name: MSGBODY Value: MQ

Custom Property Name: MDMSGCTX Value: SET_ALL_CONTEXT


If in doubt, set all properties on the destination and ignore the intended use of Send/Receive:

Custom Property Name: MDWRITE Value: YES

Custom Property Name: MDREAD Value: YES

Custom Property Name: MSGBODY Value: MQ

Custom Property Name: MDMSGCTX Value: SET_ALL_CONTEXT

You can also use the Specify the properties to use to configure WebSphere MQ Resources option to generate a sample set of MQ messaging resources. You can use these generated resources as a template to set the correct custom property values for resources created manually.

The Related URLs contain more information about these properties.

[{"Product":{"code":"SSQH9M","label":"WebSphere Process Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Messaging","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"7.0;6.2;6.1.2;6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSFTN5","label":"IBM Business Process Manager Advanced"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Process Server","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"","label":"Linux zSeries"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"8.0;7.5.1;7.5","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}},{"Product":{"code":"SS7J6S","label":"WebSphere Enterprise Service Bus"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Bindings","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"","label":"i5\/OS"},{"code":"PF016","label":"Linux"},{"code":"","label":"Linux iSeries"},{"code":"","label":"Linux pSeries"}],"Version":"7.5.1;7.5;7.0;6.2;6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

68336
004
000

Document Information

More support for:
WebSphere Process Server

Software version:
7.0, 6.2, 6.1.2, 6.1

Operating system(s):
AIX, HP-UX, IBM i, Linux, Solaris, Windows, z/OS

Document number:
483851

Modified date:
15 June 2018

UID

swg21617122

Manage My Notification Subscriptions