-1

Spring Boot publishes all metrics events to a message channel "metricsChannel" when a dependency on spring-messaging is present. In my project I am using Apache Camel along with RabbitMQ as the broker. Is there any way to consume these metrics messages using purely Camel and not spring integration?

I can see Apache Camel has a component SpringIntegration, however I would like to know if there is a way to directly access these messages via the RabbitMQ component or do I have to add dependency on the camel component spring-integration as well?

4

1 回答 1

0

使用 Camel实现和做任何你想做的事情对你来说会容易得多,MetricChannel而不是试图用 Spring 集成来桥接结果。看MessageChannelMetricWriter,实现非常简单。

于 2014-05-27T07:15:40.027 回答