/** * A default implementation of destroying the container service (no-op). * The concrete container classes should override this method to introduce * implementation specific destroy behaviour. */ protected void destroyService() throws Exception { cleanENC(); localProxyFactory.destroy(); ejbModule.removeLocalHome(this); beanClass = null; homeInterface = null; remoteInterface = null; localHomeInterface = null; localInterface = null; methodPermissionsCache.clear(); // InvocationStatistics holds refs to Methods from // application classes, so to avoid a classloader // leak, lets not just resetStats() but also replace // the object invokeStats.resetStats(); // in case someone else has a ref invokeStats = new InvocationStatistics(); marshalledInvocationMapping.clear(); }