骆驼 Spring JMS 选择器

Camel Spring JMS Selector

我们正在使用 Camel Spring DSL,我们在 camel 中使用 JMS 选择器。但是我无法使用多个 JMS 选择器。如果我只设置一个 JMS 选择器,那么它工作正常。请帮忙解决这个问题。

骆驼 JMS URL = camelJmsBean:topic:paymentT?durableSubscriptionName=XX_CLIENT&subscriptionDurable=true&selector=paymentSystem='pay'

如何在上面的相同内容中再添加 2 个 JMS 选择器 URL ...?

JMS 选择器语法支持 AND 和 OR。看起来你需要一个复合选择器.. selector=paymentSystem='pay' or paymentSystem='foo'

参考:JMS Selector syntax