A dynamic MBean is an MBean that defines its management interface at runtime. For example, a configuration MBean could determine the names and types of the attributes it exposes by parsing an XML file.

Dynamic MBeans can be used to add extra information to the MBeanInfo.

The best way to use a Dynamic MBean is to  expose properties by using simple calls like below-

JMXFramework.publishJMXProperty(“CassandaraConnection”, 100);


Follow my blog for more details and a sample code to create a dynamic MBean: