[jboss-cvs] JBossAS SVN: r103477 - trunk/varia/src/main/java/org/jboss/jmx/adaptor/html.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Apr 2 09:35:48 EDT 2010
Author: smarlow at redhat.com
Date: 2010-04-02 09:35:47 -0400 (Fri, 02 Apr 2010)
New Revision: 103477
Modified:
trunk/varia/src/main/java/org/jboss/jmx/adaptor/html/ClusteredConsoleServlet.java
Log:
JBAS-7829 Port org.jboss.jmx.adaptor.html.ClusteredConsoleServlet to use the JSR-160 client API. Still using the same jndi lookup but using MBeanServerConnection instead of RMIAdapter class.
Modified: trunk/varia/src/main/java/org/jboss/jmx/adaptor/html/ClusteredConsoleServlet.java
===================================================================
--- trunk/varia/src/main/java/org/jboss/jmx/adaptor/html/ClusteredConsoleServlet.java 2010-04-02 10:38:38 UTC (rev 103476)
+++ trunk/varia/src/main/java/org/jboss/jmx/adaptor/html/ClusteredConsoleServlet.java 2010-04-02 13:35:47 UTC (rev 103477)
@@ -27,6 +27,7 @@
import java.util.Properties;
import java.util.Vector;
import java.util.Enumeration;
+import javax.management.MBeanServerConnection;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -42,7 +43,6 @@
import org.jboss.ha.framework.interfaces.HAPartition;
import org.jboss.jmx.adaptor.control.AddressPort;
-import org.jboss.jmx.adaptor.rmi.RMIAdaptor;
import org.jboss.logging.Logger;
import org.jnp.interfaces.NamingContext;
@@ -291,7 +291,7 @@
throw new NamingException("Failed to find any parition");
env.setProperty(NamingContext.JNP_PARTITION_NAME, partitionName);
- RMIAdaptor adaptor = (RMIAdaptor) ctx.lookup("jmx/rmi/RMIAdaptor");
+ MBeanServerConnection adaptor = (MBeanServerConnection) ctx.lookup("jmx/rmi/RMIAdaptor");
ObjectName clusterPartition = new ObjectName("jboss:service="+partitionName);
Vector view = (Vector) adaptor.getAttribute(clusterPartition, "CurrentView");
log.debug("Found ClusterPartition: "+clusterPartition);
More information about the jboss-cvs-commits
mailing list