Apache camel interceptFrom和interceptSendToEndpoint不工作

Apache camel interceptFrom和interceptSendToEndpoint不工作,apache-camel,interceptor,Apache Camel,Interceptor,我试图截获从/到特定rabbitmq路由,如下所示, interceptFrom(rabbitmq:localhost/someExchangeName?queue=“somerRabbitMqQueueName”).to(“log:hello”) 我在那里什么也得不到 我已经测试过了 intercept().to(“log:hello”)并且我可以确认它正在工作,是否有人可以让我知道我是否需要配置其他东西以使intercept from/to工作 我们使用JavaDSL和GoogleGuice

我试图截获从/到特定rabbitmq路由,如下所示, interceptFrom(rabbitmq:localhost/someExchangeName?queue=“somerRabbitMqQueueName”).to(“log:hello”)

我在那里什么也得不到

我已经测试过了 intercept().to(“log:hello”)并且我可以确认它正在工作,是否有人可以让我知道我是否需要配置其他东西以使intercept from/to工作

我们使用JavaDSL和GoogleGuice进行依赖注入。 一些项目设置如下:

  • 驼色版本:2.18.3(也尝试了2.19.1)
  • 骆驼图案:2.18.3
  • guice多重绑定:4.1.0
  • 骆驼兔MQ:2.18.3
  • maven编译器插件:1.7

骆驼邮件列表中也有这样的问题

确保它可以匹配实际的url,因此确保它们完全相同 如果不使用通配符(
*
),也可以这样做

 interceptFrom("rabbitmq:localhost/xxx*")
或者试试看

 interceptFrom("rabbitmq:localhost/xxx?queue=foo*")
另请参见Camel文档,以及关于通配符模式(在页面底部):