I'm trying to get my application's Spring-exported JMX beans to show up in both jconsole and in the JBoss JMX console under Java 1.5. To that end, I've configured JBoss to use the platform MBeanServer, as described here
http://wiki.jboss.org/wiki/Wiki.jsp?...eansInJConsole
After doing this and starting up JBoss, as JBoss is starting up if I attach to the MBeanServer using jconsole, I see all the standard Java MBeans loaded, as well as JBoss MBeans load. When Spring finally exports my application's MBeans, however, all MBeans disappear from jconsole _except_ my application's MBeans and one named JMImplementation:name=MBeanServerDelegate. The same beans are also what show up in JBoss's web /jmx-console.
If I don't configure JBoss to use the platform MBeanServer, but leave the -Dcom.sun.management.jmxremote flag for the JVM, then the Spring-exported beans show up in jconsole only, and all the JBoss beans show up in the /jmx-console only.
If I don't have the -Dcom.sun.management.jmxremote configured at all for JBoss, then the Spring-exported beans and all the JBoss beans show up together in the /jmx-console.
What I'd really like is for all beans to show up using jconsole as well as the /jmx-console. Anybody have any luck with this?


Reply With Quote