Skip to content

Commit 03e7be3

Browse files
committed
Document that spring.jmx.enabled is not for third-party libraries
Closes gh-42272
1 parent a810494 commit 03e7be3

File tree

2 files changed

+4
-1
lines changed
  • spring-boot-project
    • spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jmx
    • spring-boot-docs/src/docs/asciidoc/actuator

2 files changed

+4
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jmx/JmxProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public class JmxProperties {
3030

3131
/**
32-
* Expose management beans to the JMX domain.
32+
* Expose Spring's management beans to the JMX domain.
3333
*/
3434
private boolean enabled = false;
3535

spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/jmx.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Any of your beans that are annotated with Spring JMX annotations (`@ManagedResou
99
If your platform provides a standard `MBeanServer`, Spring Boot uses that and defaults to the VM `MBeanServer`, if necessary.
1010
If all that fails, a new `MBeanServer` is created.
1111

12+
NOTE: `spring.jmx.enabled` affects only the management beans provided by Spring.
13+
Enabling management beans provided by other libraries (for example Log4j2 or Quartz) is independent.
14+
1215
See the {spring-boot-autoconfigure-module-code}/jmx/JmxAutoConfiguration.java[`JmxAutoConfiguration`] class for more details.
1316

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

0 commit comments

Comments
 (0)