Girders provides support for JMX out of the box and by default. You do not have to configure anything for it. Girders leverages the JMX support of Spring Boot. By default, Spring Boot configures an MBeanServer and exposes various beans to JMX. Girders does the same with some of its beans.
You can disable the automatic JMX support by setting the property
spring.jmx.enabled: false
Spring Boot Actuators can also be exposed to JMX. You can control the behaviour in detail using the
management.endpoints.jmx.expose
configuration properties. For example:
management.endpoints.jmx.expose: info, health
More details about the configuration can be found in the Spring Boot documentation.
The following Girders beans are exposed by as manageable beans to JMX:
Bean | Description |
---|---|
messageSource | An instance of MessageSourceDecorator which wraps the Spring's MessageSource that is auto-configured by Spring Boot. |
mailSender | An instance of GirdersMailSender which extends Spring's JavaMailSender. |
The beans are exposed under the namespace com.netcetera.girders
.
Girders and Spring Boot also provided support for accessing JMX beans over HTTP. Spring Boot provides auto-configured support for this, including an integration into the actuator mechanism using Jolokia. More information about this can be found in the Spring Boot documentation.