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
This commit is contained in:
Jon Cox
2006-11-24 19:08:01 +00:00
parent ec6d0a5ac5
commit ad0786a227

View File

@@ -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)
{