2016-05-23 32 views
1

在路由中指定URI時可以使用SpEL嗎?我試過這幾種方法,但似乎沒有工作。用於Apache Camel URI評估的SpEL

想這樣做:

<from uri="jms:queue:#{ ${mq.dynamic.switch} ? '$mq.dynamic.queue' : '$mq.static.queue'}?connectionFactory=#connectionFactory" /> 

我基本上是試圖評估屬性來確定哪些隊列配置JMS路由時利用。

回答