In the jms:outbound-endpoint
, use #[queueName]
instead of #[variable:queueName]
Also no need to use a choice router to emulate a ternary expression, just use:
<set-variable variableName="queueName"
value="#[h = message.inboundProperties['myheader']; h == empty || h != 'urgent' ? '${lowPriorityQueueName}' : '${urgentQueueName}']"/>