How does the exchange-name-expression on an amqp outbound channel work ?
I have my destination AMQP exchange name in the header, and I want to use the exchange-expression-name on an outbound channel adapter to dynamically send to different exchanges.
<int-amqp:outbound-channel-adapter channel="amqpOutboundChannel" exchange-name-expression="headers['out.workQ']" routing-key="simpleKey" mapped-request-headers="embed.*"/>
But I get the exception below -
Caused by: org.springframework.integration.MessagingException: failed to resolve channel name 'ORDER.XCHG'
Any idea what I might be doing wrong ?