PDA

View Full Version : Can Description Be Set for Spring JMX MBeans Using InterfaceBasedMBeanInfoAssembler?



spring_dm
Jan 19th, 2008, 09:28 PM
The Spring 2.5 reference documentation (http://static.springframework.org/spring/docs/2.5.x/reference/jmx.html#jmx-interface-metadata) demonstrates how to use MetaDataMBeanInfoAssembler and in-source annotations to provide a description and other metadata information that will be viewable for operations and attributes of MBeans from the JConsole client. Is there an approach that can be used to express this same type of metadata for Spring-backed MBeans via Spring's XML configuration and the InterfaceBasedMBeanInfoAssembler (http://static.springframework.org/spring/docs/2.5.x/reference/jmx.html#jmx-interface-java)?

In other words, I'd like to be able to specify things like description, defaultValue, and other "source-level metadata parameters" described in Table 20.3 (http://static.springframework.org/spring/docs/2.5.x/reference/jmx.html#jmx-interface-metadata-types) with the interface-based approach rather than the source-code annotation approach. The fact that these are referred to as source-level implies to me that these can only be specified for Springified JMX MBeans that use in-source annotations.