From: Juha L. <juh...@us...> - 2003-08-07 21:36:30
|
User: juhalindfors Date: 03/08/07 14:36:29 Modified: src/main/org/jboss/mx/server MBeanServerImpl.java Log: releaseServer() implementation. This is adaptation of patch to JBoss 4.0 by Rod Burgett (Bug report: 763378). Currently the class loader repository is not invoked. This requires another patch to be applied. Revision Changes Path 1.43 +25 -1 jmx/src/main/org/jboss/mx/server/MBeanServerImpl.java Index: MBeanServerImpl.java =================================================================== RCS file: /cvsroot/jboss/jmx/src/main/org/jboss/mx/server/MBeanServerImpl.java,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- MBeanServerImpl.java 1 Apr 2003 04:07:20 -0000 1.42 +++ MBeanServerImpl.java 7 Aug 2003 21:36:29 -0000 1.43 @@ -106,7 +106,7 @@ * @author <a href="mailto:ju...@jb...">Juha Lindfors</a>. * @author <a href="mailto:tr...@pr...">Trevor Squires</a>. * @author <a href="mailto:Adrian.Brock@HappeningTimes.com">Adrian Brock</a>. - * @version $Revision: 1.42 $ + * @version $Revision: 1.43 $ */ public class MBeanServerImpl implements MBeanServer, ServerConstants, ServiceConstants, ModelMBeanConstants @@ -846,6 +846,30 @@ { throw new RuntimeException("NYI"); } + + + public void releaseServer() + { + // shutdown the loader repository +// try +// { +// invoke(new ObjectName(DEFAULT_LOADER_NAME), +// "releaseLoaderRepository", +// new Object[0], +// new String[0] ); +// } +// catch (Exception e) +// { +// log.error("Unable to shutdown loader repository"); +// e.printStackTrace(); +// } + + registry.releaseRegistry(); + listeners.removeAll(); + listeners = null; + registry = null; + } + // Protected ----------------------------------------------------- |