How can I browse mbeans exported by spring in a console app
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">
<property name="beans">
<map>
<entry key="bean:name=hellor1" value-ref="hellor1"/>
<entry key="bean:name=httpConnector">
<ref local="httpConnector"/>
</entry>
</map>
</property>
<property name="server" ref="mbeanServer"/>
</bean>
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