Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A processor must implement the org.apache.camel.Service to be managed. Most EIP processors does this.
For example the minor ones such as setHeader does not and thus is not visible in JConsole.

From Camel 2.6 onwards your custom Processor can just implement ManagementAware and just return this in the method.
Then you can use the Spring JMX annotations on your custom processor to have those attributes and operations enlisted 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}

See also