Brad,
This is available in the latest snapshot (e.g. nightly-77), and I'd be very interested in your feedback once you try the following...
The JMSCorrelationId value is stored separately from the Spring Integration MessageHeader's correlationId. The rationale is that the former is related to an external system while the latter is used *within* Spring Integration messaging. To access the JMSCorrelationId after receiving a Message from a JMS source adapter, try this:
Code:
jmsCorrelationId = message.getHeader().getAttribute(JmsAttributeKeys.CORRELATION_ID);
The value should be mapped automatically for incoming JMS Messages and also mapped automatically for outbound JMS Messages. That means that you can also set the value prior to sending to a JMS target adapter like so:
Code:
message.getHeader().setAttribute(JmsAttributeKeys.CORRELATION_ID, jmsCorrelationId);
Hope that helps.
-Mark