Getting a Reply message based on a specific MQ correlation ID

Technote (FAQ)


Question

I need to listen on the MQ Reply queue for a response message with a specific correlation ID. Is there a way to accomplish this on the IBM WebSphere DataPower SOA appliance?

Answer

Note: The information contained in this document is being moved to developerWorks Answers located here.The new format will allow you to ask additional questions of the community to better understand the information. This technote will be archived at some point in the near future. Please bookmark the new location.



The following approach may be used to listen on the MQ Reply queue for a response message with a specific correlation ID:

  1. If you have an MQ backend URL, remove the ReplyQueue parameter from the url.
  2. In the request processing rule, save the information (message or correlation ID) that will be used to populate the correlation ID for the MQ GET request in a DataPower context variable.
  3. In the response processing rule, use the dp:url-open extension function to make the MQ GET request based on the specific correlation ID. The details are as follow
    • Obtain the information saved in the context variable (in the request rule).
    • Set the correlation Id via the X-MQMD-GET header.
    • Use the dp:url-open extension function to make the MQ GET request.
      • If you wish to specify a timeout on the MQ GET request, when building the MQ url to be used with the dp:url-open function, you may specify a timeout in milliseconds using the TimeOut query parameter.
      • Ensure the appropriate response type is specified on the dp:url-open extension function.

This thread in the DataPower forum on developerWorks also contains some helpful information along with a sample structure of the X-MQMD-GET header.

Additional information on the url-open function can be found by reviewing the DataPower 'Extension Functions and Elements' from the DataPower Product Documentation. From the Product Document or Information Center, you may use the following path to access the 'Extension elements':
'Reference' -> 'Extension Functions and Elements' -> 'Extension elements'

The following link may also be used to access more information about the url-open command.

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

WebSphere DataPower SOA Appliances
General

Software version:

5.0.0, 6.0.0, 6.0.1, 7.0.0

Operating system(s):

Firmware

Reference #:

1504752

Modified date:

2011-08-26

Translate my page

Machine Translation

Content navigation