Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4093

Correlation key is not set at inbound-gateway

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.3.1
    • Fix Version/s: None
    • Component/s: JMS Support
    • Environment:
      spring-boot-1.4.0.RELEASE

      Description

      When the correlation-key of inbound-gateway for jms is set to "JMSMessageID", the output JMS message will not receive any value. Following code in ChannelPublishingJmsMessageListener.copyCorrelationIdFromRequestToReply looks suspicious

      	String value = requestMessage.getStringProperty(this.correlationKey);
      	if (value != null) {
      		replyMessage.setStringProperty(this.correlationKey, value);
      	}
      

      Should it be

      replyMessage.setJMSCorrelationID(value);
      

      In addition, not setting correlation-key to any value also does not work.

        Attachments

          Activity

            People

            Assignee:
            grussell Gary Russell
            Reporter:
            hillmanytli hillmanytli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: