From ad0786a227ff2d1f9556885d277e44e25554aa97 Mon Sep 17 00:00:00 2001 From: Jon Cox Date: Fri, 24 Nov 2006 19:08:01 +0000 Subject: [PATCH] Point checkin. Inserting a password-protected MBean and associated RMI-based MBeanServer into the Alfresco webapp context. Right now, it's just in "hello world" condition, but you can say: jconsole service:jmx:rmi:///jndi/rmi://your-alfresco-box:50500/alfresco/jmxrmi and browse the MBean (assuming you know the associated jmxrolename/password). Just one property right now ("moo"), but fleshes out all the major issues for isolating the JMX for our MBean from the JMX for the JVM as a whole. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4441 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/web/app/ContextListener.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/java/org/alfresco/web/app/ContextListener.java b/source/java/org/alfresco/web/app/ContextListener.java index f551732498..45d2318b95 100644 --- a/source/java/org/alfresco/web/app/ContextListener.java +++ b/source/java/org/alfresco/web/app/ContextListener.java @@ -53,7 +53,7 @@ import org.springframework.web.context.support.WebApplicationContextUtils; // in order to make it easier to find in listing of all MBeans // within servlet container. // -import org.alfresco.mbeans.AlfrescoVirtServer; +// import org.alfresco.mbeans.VirtServerRegistry; /** @@ -68,7 +68,7 @@ public class ContextListener implements ServletContextListener, HttpSessionListe private static Log logger = LogFactory.getLog(ContextListener.class); private ServletContext servletContext; - private AlfrescoVirtServer alfrescoVirtServerMBean_; + // private VirtServerRegistry virtServerRegistryMBean; /** * @see javax.servlet.ServletContextListener#contextInitialized(javax.servlet.ServletContextEvent) @@ -132,11 +132,11 @@ public class ContextListener implements ServletContextListener, HttpSessionListe // of changes within the WEB-INF dir of the webapps // being virtualized (so that reloading can take place). // - // Note: The AlfrescoVirtServer constructor registers the - // AlfrescoVirtServerMBean into the MBean server, + // Note: The VirtServerRegistry constructor registers the + // VirtServerRegistryMBean into the MBean server, // so all that's required here is to create an instance. // - alfrescoVirtServerMBean_ = new AlfrescoVirtServer(); + // virtServerRegistryMBean = new VirtServerRegistry(); } catch (Throwable e) {