MetricsRoutePolicyFactory not effective with camel route.
Issue
- I am planning to use mertics route policy, but I am facing the issue while adding this feature in my bundle, Below the my code.
Pom.xml
--
<Import-Package>
org.apache.camel.component.metrics.routepolicy,*
</Import-Package>
--
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-metrics</artifactId>
<version>2.17.0.redhat-630187</version>
</dependency>
---
Camel route:
--
<bean id="metricsRoutePolicyFactory" class="org.apache.camel.component.metrics.routepolicy.MetricsRoutePolicyFactory"/>
<camelContext id="ServicesDummy" xmlns="http://camel.apache.org/schema/blueprint">
<route shutdownRoute="Default" streamCache="true" id="ServicesDummyRoute" routePolicyRef="metricsRoutePolicyFactory" >
<from uri="cxf:bean:ServicesEndpoint" />
---
Environment
- Red Hat JBoss Fuse
- 6.3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.