daune_jf
Sep 18th, 2006, 05:07 AM
Hi,
I defined a JBoss SAR that creates a ClassPathXmlApplicationContext based on three files: 1.xml, 2.xml, 3.xml.
In 1.xml, I define this:
<bean id="jmxExporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
<property name="autodetect" value="true" />
<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>
</bean>
<bean id="jmxAttributeSource" class="org.springframework.jmx.export.annotation.Annotati onJmxAttributeSource"/>
In both 1.xml and 2.xml, I define beans having @ManagedResource annotation.
MBeans defined in 1.xml are showing, but those in 2.xml are not.
Has anyone an idea about what's wrong?
Regards,
J-F
I defined a JBoss SAR that creates a ClassPathXmlApplicationContext based on three files: 1.xml, 2.xml, 3.xml.
In 1.xml, I define this:
<bean id="jmxExporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
<property name="autodetect" value="true" />
<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>
</bean>
<bean id="jmxAttributeSource" class="org.springframework.jmx.export.annotation.Annotati onJmxAttributeSource"/>
In both 1.xml and 2.xml, I define beans having @ManagedResource annotation.
MBeans defined in 1.xml are showing, but those in 2.xml are not.
Has anyone an idea about what's wrong?
Regards,
J-F