I am wondering whether I can enumerate all the MBeans
getting from ManagementFactory.getRuntimeMXBean
?
Asked
Active
Viewed 313 times
2

bharath
- 14,283
- 16
- 57
- 95

user705414
- 20,472
- 39
- 112
- 155
1 Answers
3
You can use the queryMBeans method on the MBeanServerConnection to list all the beans on a service (just pass null in for both parameters).
To do that using ManagementFactory
, call
ManagementFactory.getPlatformMBeanServer().queryMBeans(null,null);

Chris
- 22,923
- 4
- 56
- 50