...
From Camel 2.6 onwards your custom Processor
can just implement ManagementAware
and just return this
in the method.
Then you can should use the Spring JMX annotations on your custom processor to have those attributes and operations enlisted . 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 processor|url=camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedCustomProcessorTest.java} |
...