About the JMS Reply message flow

This message flow reads the reply message from the Backend Reply message flow, and writes an output message containing an XML format payload. The message flow also restores the message context (CorrelationID and ReplyTo stored as name-value pairs in the Application_Properties folder in the Request flow) to the JMSCorrelationID and JMSReplyTo fields of the Header_Values folder. This message is read and processed by the originating application.

The following message flow is imported by the sample.

A screen capture of the JMSHeader Node Reply message flow

The JMS Reply message flow performs the following processing:

  1. The message flow reads the backend JMS reply message in an XML format from the JMS queue by using a JMSInput node (JMSReplyInput).
  2. The JMSInput node (JMSReplyInput) uses the message set JMSCoordinatedRequestReplyMsgSet to parse the request message.
  3. The message flow restores the CorrelationID and ReplyTo queue from the Application Properties to the JMSCorrelationID and JMSReplyTo fields of the JMS Header_Values by using a JMSHeader node (ReStoreOrgMsgIDandReplyToIntoJMSCorrelationIDandJMSReplyTo).
  4. The message flow sends the reply message:
    <StockInformation>
    	<CompanyName>IBM</CompanyName>
    	<Price>150</Price>
    </StockInformation>
    to the JMSReplyTo queue, which is set to reply to the original queue.
  5. This message is read and processed by the originating JMS application by using the restored JMSCorrelationID.

Back to sample home