Manage spring beans with jmx

background

If you want to change the configuration of the application at runtime, you can use the java management extension (jmx), which can manage, monitor, and configure the application

The core component of managing an application using jmx is the MBean.

An MBean is a javabean that exposes specific methods defined by the management interface

1: Standard MBean: The management interface of the standard MBean is determined by reflecting the fixed interface implemented by the Bean class

2: Dynamic MBean: It is determined at runtime by calling the methods of the DynamicMBean interface

3: Develop MBean: Attributes and methods are limited to primitive types and primitive types of wrapper classes

4: Model MBean: used to act as a management interface

 

1. Export Spring Bean as MBean

<bean id = mbeanExporter class = "MBeanExporter">

<property name = "beans">

<map>

 <entry key = "spitter : name = HomeController" value-ref = "homeController"> 

</map>

</property>

</bean>

 

 

 

 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326615459&siteId=291194637
JMX