I have add mbeanserver to my app like this
<bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServer FactoryBean"/>
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporte r">
<entry key="bean:name=hellor1" value-ref="hellor1"/>
<property name="server" ref="mbeanServer"/>
and I have added -Dcom.sun.management.jmxremote to the jvm parameters
when the app starts, spring framework's log claims that the server has been created and the mbeans have been created.
when I connect to the app through Jconsole. It connected successfully but none of spring created mbean is show. Only jdk's mbeans are there.
On the other hand, if I use Jconsole to connect to a tomcat server which has spring web apps deployed, Jconsole does show all the mbeans. :shock:
What is wrong?Plean help me