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:
- getters / setters – in order to set or get specific values on the particular items
- ability to perform more advanced operations
- 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:
- Standard MBeans
- Dynamic MBeans
- Open MBeans
- Model MBeans
- MXBeans
No comments:
Post a Comment