PDA

View Full Version : jmx and WSAD 5.1


sebboudreau
Feb 27th, 2006, 02:04 PM
Hi all,

I'm trying to register my beans to my MBeanServer (integrated into Websphere Studio Application Developper 5.1.2) through the Spring's application context.xml file (Spring version is 1.2.6). My beans don't seem to be registered. With MC4J, none of them are visible.

Here is my app context:


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE beans PUBLIC "-//SPRING/DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">

<beans>
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
<property name="beans">
<map>
<entry key="bean:name=routeur" value-ref="routeur" />
</map>
</property>
</bean>

<bean id="routeur" class="ca.promutuel.esb.routeur.Routeur" />
</beans>


any help would be appreciated!
Thanks!

Costin Leau
Feb 28th, 2006, 05:43 AM
Turn on logging and see what MBean server the MBeanExporter actually uses. Also turn off lazy loading to make sure that your beans are instantiated at startup.

sebboudreau
Mar 2nd, 2006, 01:34 PM
Thanks! Problem was the lasy loading.