Search code examples
springjmxmbeansspring-jmx

Configure read-only attribute for jmx mbean with xml spring configuration


How to configure read-only JMX bean with XML configuration?

Official tutorial (link below) says only about annotations on methods, is there a way to do the same via XML?

http://docs.spring.io/spring/docs/current/spring-framework-reference/html/jmx.html#jmx-interface-metadata


Solution

  • See AbstractConfigurableMBeanInfoAssembler and its subclasses MethodNameBasedMBeanInfoAssembler etc.

    See also the MBeanInfoAssembler Interface section in the reference documentation.