protected void destroyService() throws Exception { // Associate thread with classloader ClassLoader oldCl = SecurityActions.getContextClassLoader(); SecurityActions.setContextClassLoader(getClassLoader()); pushENC(); try { destroyInvokers(); destroyInstanceCache(); destroyInstancePool(); destroyPersistenceManager(); destroyInterceptors(); destroyMarshalledInvocationMapping(); homeInterface = null; remoteInterface = null; serviceEndpoint = null; beanMapping.clear(); // Call default destroy super.destroyService(); } finally { popENC(); // Reset classloader SecurityActions.setContextClassLoader(oldCl); } }