...
From Camel 2.6 onwards your custom Processor
should use the Spring JMX annotations (for Camel 2.9 onwards see the tip box below). Just add @ManagedResource
to the class, and the other annotations for the attributes and operations. Then Camel will automatic use those when the processor is being registered in JMX.
...
Wiki Markup |
---|
{snippet:id=e1|lang=java|title=Custom bean|url=camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedCustomBeanTest.java} |
Tip | ||
---|---|---|
| ||
Notice that from Camel 2.9 onwards its encouraged to use the |