Versions Compared

Key

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

...

Each CamelContext can have an instance of InstrumentationAgent wrapped insider inside the InstrumentationLifecycleStrategy. The InstrumentationAgent is the object that interfaces with a MBeanServer to register/unregister Camel MBeans. Multiple CamelContexts/InstrumentationAgents can/should share a MBeanServer. By default, Camel runtime picks the first MBeanServer returned by MBeanServerFactory.findMBeanServer method that matches the default domain name of org.apache.camel.  You may want to change the default domain name to match the MBeanServer instance that you are already using in your application.  Especially, if your MBeanServer is attached to a JMX connector server, you will not need to create a connector server in Camel.

...

From Camel 2.4 you can use a customer custom JMX NotificationListener to listen the camel events.
First you need to set up a JmxNotificationEventNotifier before you start the CamelContext.

...