loge
Sep 19th, 2006, 05:04 PM
Hi,
i am getting the error as mentioned in the subject even though i am in JDK5 annotations mode. Here is the wiring:
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
<property name="assembler">
<bean class="org.springframework.jmx.export.assembler.MetadataM BeanInfoAssembler">
<property name="attributeSource" ref="jmxAttributeSource"/>
</bean>
</property>
<property name="namingStrategy">
<bean class="org.springframework.jmx.export.naming.MetadataNami ngStrategy">
<property name="attributeSource" ref="jmxAttributeSource"/>
</bean>
</property>
<property name="autodetect" value="true"/>
</bean>
<bean id="jmxAttributeSource"
class="org.springframework.jmx.export.annotation.Annotati onJmxAttributeSource"/>
Then i have annotated one of my existing beans with the annotations as shown in the spring doc. The only difference is that my bean doesnt implement an interface like the example bean in your docs.
Why cant the exporter find my bean?
Logging on jmx channel on trace level only revealed this:
[DEBUG 00:17:47] JmxUtils.locateMBeanServer(92) | Found MBeanServer: com.sun.jmx.mbeanserver.JmxMBeanServer@210e81
[INFO 00:17:47] MBeanExporter.registerBeans(348) | Autodetecting user-defined JMX MBeans
Thanks for insights how to get more infos on that issue or for plain solutions to this ;)
Marc
i am getting the error as mentioned in the subject even though i am in JDK5 annotations mode. Here is the wiring:
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
<property name="assembler">
<bean class="org.springframework.jmx.export.assembler.MetadataM BeanInfoAssembler">
<property name="attributeSource" ref="jmxAttributeSource"/>
</bean>
</property>
<property name="namingStrategy">
<bean class="org.springframework.jmx.export.naming.MetadataNami ngStrategy">
<property name="attributeSource" ref="jmxAttributeSource"/>
</bean>
</property>
<property name="autodetect" value="true"/>
</bean>
<bean id="jmxAttributeSource"
class="org.springframework.jmx.export.annotation.Annotati onJmxAttributeSource"/>
Then i have annotated one of my existing beans with the annotations as shown in the spring doc. The only difference is that my bean doesnt implement an interface like the example bean in your docs.
Why cant the exporter find my bean?
Logging on jmx channel on trace level only revealed this:
[DEBUG 00:17:47] JmxUtils.locateMBeanServer(92) | Found MBeanServer: com.sun.jmx.mbeanserver.JmxMBeanServer@210e81
[INFO 00:17:47] MBeanExporter.registerBeans(348) | Autodetecting user-defined JMX MBeans
Thanks for insights how to get more infos on that issue or for plain solutions to this ;)
Marc