mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Removed residual commented-out code from ContextListener
that harkened back to the pre-spring MBean implementation. Also added some svn:ignore properties for the mbean/build dir. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4442 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -47,15 +47,6 @@ import org.springframework.web.context.WebApplicationContext;
|
|||||||
import org.springframework.web.context.support.WebApplicationContextUtils;
|
import org.springframework.web.context.support.WebApplicationContextUtils;
|
||||||
|
|
||||||
|
|
||||||
// Alfresco virtualization server registry
|
|
||||||
//
|
|
||||||
// Note: This MBean class includes "Alfresco..." in the class name
|
|
||||||
// in order to make it easier to find in listing of all MBeans
|
|
||||||
// within servlet container.
|
|
||||||
//
|
|
||||||
// import org.alfresco.mbeans.VirtServerRegistry;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ServletContextListener implementation that initialises the application.
|
* ServletContextListener implementation that initialises the application.
|
||||||
*
|
*
|
||||||
@@ -68,7 +59,6 @@ public class ContextListener implements ServletContextListener, HttpSessionListe
|
|||||||
private static Log logger = LogFactory.getLog(ContextListener.class);
|
private static Log logger = LogFactory.getLog(ContextListener.class);
|
||||||
|
|
||||||
private ServletContext servletContext;
|
private ServletContext servletContext;
|
||||||
// private VirtServerRegistry virtServerRegistryMBean;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see javax.servlet.ServletContextListener#contextInitialized(javax.servlet.ServletContextEvent)
|
* @see javax.servlet.ServletContextListener#contextInitialized(javax.servlet.ServletContextEvent)
|
||||||
@@ -126,17 +116,6 @@ public class ContextListener implements ServletContextListener, HttpSessionListe
|
|||||||
|
|
||||||
// commit the transaction
|
// commit the transaction
|
||||||
tx.commit();
|
tx.commit();
|
||||||
|
|
||||||
// Create MBean to register attached virtualization servers.
|
|
||||||
// This MBean is used to notify virtualzation servers
|
|
||||||
// of changes within the WEB-INF dir of the webapps
|
|
||||||
// being virtualized (so that reloading can take place).
|
|
||||||
//
|
|
||||||
// Note: The VirtServerRegistry constructor registers the
|
|
||||||
// VirtServerRegistryMBean into the MBean server,
|
|
||||||
// so all that's required here is to create an instance.
|
|
||||||
//
|
|
||||||
// virtServerRegistryMBean = new VirtServerRegistry();
|
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (Throwable e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user