[jboss-dev-forums] [Design of JMX on JBoss (JBoss/JMX)] - JBAS-5220 - Twiddle not displaying Platform MBean.
vickyk
do-not-reply at jboss.com
Fri Feb 15 00:53:36 EST 2008
The MBeanServer which is passed to InvokerAdapterService is org.jboss.mx.server.MBeanServerImpl , this MBeanServer is created during LazyMBeanServer.resetToJBossServer(server) call in org.jboss.system.server.ServerImpl .
The twiddle gets the MBean's which are registered in org.jboss.mx.server.MBeanServerImpl , the Platform MBean's are not registered in it.
The InvokerAdapterService should have the reference of the LazyMBeanServer when this system property is set.
-Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
This can be done by making changes in InvokerAdapterService as
Index: InvokerAdaptorService.java
| ===================================================================
| --- InvokerAdaptorService.java (revision 69558)
| +++ InvokerAdaptorService.java (working copy)
| @@ -43,6 +43,7 @@
| import org.jboss.jmx.adaptor.rmi.RMINotificationListener;
| import org.jboss.jmx.connector.invoker.client.InvokerAdaptorException;
| import org.jboss.mx.server.ServerConstants;
| +import org.jboss.system.server.jmx.LazyMBeanServer;
| import org.jboss.system.Registry;
| import org.jboss.system.ServiceMBeanSupport;
|
| @@ -263,6 +264,7 @@
| Class[] paramTypes = method.getParameterTypes();
| Method mbeanServerMethod = MBeanServer.class.getMethod(name,
| paramTypes);
| + server = LazyMBeanServer.getRegisteredMBeanServer(server);
| value = mbeanServerMethod.invoke(server, args);
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129559#4129559
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129559
More information about the jboss-dev-forums
mailing list