Search code examples
apache-camelactivemq-classicblueprint-osgispring-dsl

How to set Correlation ID in spring DSL


How to set the correlation id in Spring DSL? The below code doesn't reflect correlation ID in Active MQ

<setHeader headerName="correlationId">
    <constant>IFS123</constant>
</setHeader>

tried with

<setHeader headerName="JMSCorrelationId">
    <constant>IFS456</constant>
</setHeader>

Solution

  • The name is the standard JMS name which is JMSCorrelationID notice the upper case ID. You can find the name in the JMS spec: https://docs.oracle.com/javaee/7/api/javax/jms/Message.html