Most Popular Posts

11/02/2014

What are MBeans JavaBeans and JMX


What are MBeans JavaBeans and JMX


What are MBeans?


MBeans Objects are type of JavaBean, created (mostly) with the Dependency Injection

What is inside the MBean?


MBeans represent current state/ resource of a running parts of the application, and expose the management interface containing:
  1. getters / setters – in order to set or get specific values on the particular items
  2. ability to perform more advanced operations
  3. provide self description mechanism

MBeans structure:



So basically MBeans can hold information like statistics, current configuration, or simply act as a key-value store.

MBeans are registeresd to the MBean Server and are used in the JMX (Java Management Extensions technology).

JMX:

JMX (Java Management Extensions) – allows co connect to the currently running JVM to monitor/ manager running applications through MBeans.

JMX can communicate with the MBeans through a connector (RMI, IIOP, JMS…)that talk with the MBean Server via API. MBean Server is a bridge between the connector and MBeans.


The JMX specification defines following types of MBeans:

  1. Standard MBeans
  2. Dynamic MBeans
  3. Open MBeans
  4. Model MBeans
  5. MXBeans

Resources:

http://docs.jboss.org/jbossas/jboss4guide/r4/html/jbosscache.chapt.html https://blogs.oracle.com/jmxetc/entry/what_is_jmx

No comments:

Post a Comment