JMX
Spring 中的 JMX(Java Management Extensions)支持提供了使您可以轻松透明地将 Spring 应用程序集成到 JMX 基础设施中的功能。
The JMX (Java Management Extensions) support in Spring provides features that let you easily and transparently integrate your Spring application into a JMX infrastructure.
本章不是 JMX 简介。它不会尝试解释你可能想要使用 JMX 的原因。如果你是 JMX 新手,请参见本章末尾的Further Resources。
This chapter is not an introduction to JMX. It does not try to explain why you might want to use JMX. If you are new to JMX, see Further Resources at the end of this chapter.
具体而言,Spring 的 JMX 支持提供了以下四个核心功能:
Specifically, Spring’s JMX support provides four core features:
-
The automatic registration of any Spring bean as a JMX MBean.
-
A flexible mechanism for controlling the management interface of your beans.
-
The declarative exposure of MBeans over remote, JSR-160 connectors.
-
The simple proxying of both local and remote MBean resources.
这些特性设计为在不将应用程序组件耦合到 Spring 或 JMX 接口和类的情况下运行。事实上,大多数情况下,应用程序类不需要了解 Spring 或 JMX 就可以利用 Spring JMX 特性。
These features are designed to work without coupling your application components to either Spring or JMX interfaces and classes. Indeed, for the most part, your application classes need not be aware of either Spring or JMX in order to take advantage of the Spring JMX features.