【发布时间】:2017-01-06 15:23:59
【问题描述】:
我知道 JMS 标头属性区分大小写。但我正在研究一项要求,我必须使 JMS 选择器不区分大小写。有可能这样做吗? 我正在使用骆驼,下面是我在属性文件中定义选择器的方式。
accountQueue = ActiveMQqueueJmsComponent:queue:account?selector=money ('Dollar')
骆驼路线:
@Value("${consumer.accountQueue}")
private String accountQueue;
@Bean
RouteBuilder accountRouteBuilder() {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
from(accountQueue).to(OrderService)
}
}
}
我尝试使用 UPPER 和 LOWER 等功能,但无法成功。我定义如下。
accountQueue = ActiveMQqueueJmsComponent:queue:account?selector=money <> UPPER('Dollar') // not working
【问题讨论】:
-
Article 可能会帮助您解决问题。
标签: spring apache-camel activemq camel-sql