mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user