Custom JMX Beans
SAP Commerce provides tools to support adding custom JMX MBeans to fulfil your own application monitoring needs.
The MBeanRegisterUtilities is a SAP Commerce bean which deals with the registration or deregistration of MBeans which extend the AbstractJMXMBean class. Any class which does not extend this class is not recognized
MBeanRegisterUtilities contains the methods getRegisteredBeans() and getUnregisteredBeans(), which give an overview of registered and unregistered beans. The return value of those methods is a map: beanid > theBeanObject.
You can add or remove MBeans in running environment using registerBeans(beanmap) and unregisterBeans(beanmap). The result is adding or removing the beans in the JConsole in real time.
AbstractJMXMBean and ObjectName
AbstractJMXMBean is an abstract class which must be implemented by any custom MBean. Without it, the MBean is not recognized by the MBeanRegisterUtilities class.
An MBeanServer instance interacts with the MBeans registered with it via their ObjectName. The ObjectName must be unique within the system.