Adding JMX attributes and operations

Camel provides a lot of JMX information for internal constructs (routes, endpoints, and so on) as well as for Java classes invoked from Camel. For example, when you include a call to a custom Java method as a part of a route, Camel will expose that through JMX as a Camel Processor and associate many JMX attributes with it. These include how many messages were sent to that processor, number of redelivery attempts, timestamps for initial and last messages processed, and so on.

There are times when you want to provide custom, or additional, JMX attributes and operations, such as code-specific metrics, and you want the ability to monitor and interact with these from your operational monitoring tools. This recipe ...

Get Apache Camel Developer's Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.