Skip to content

Commit

Permalink
Document that spring.jmx.enabled is not for third-party libraries
Browse files Browse the repository at this point in the history
Closes gh-42272
  • Loading branch information
philwebb committed Sep 13, 2024
1 parent a810494 commit 03e7be3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
public class JmxProperties {

/**
* Expose management beans to the JMX domain.
* Expose Spring's management beans to the JMX domain.
*/
private boolean enabled = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Any of your beans that are annotated with Spring JMX annotations (`@ManagedResou
If your platform provides a standard `MBeanServer`, Spring Boot uses that and defaults to the VM `MBeanServer`, if necessary.
If all that fails, a new `MBeanServer` is created.

NOTE: `spring.jmx.enabled` affects only the management beans provided by Spring.
Enabling management beans provided by other libraries (for example Log4j2 or Quartz) is independent.

See the {spring-boot-autoconfigure-module-code}/jmx/JmxAutoConfiguration.java[`JmxAutoConfiguration`] class for more details.

By default, Spring Boot also exposes management endpoints as JMX MBeans under the `org.springframework.boot` domain.
Expand Down

0 comments on commit 03e7be3

Please sign in to comment.