in services/minho-jmx/src/main/java/org/apache/karaf/minho/jmx/ConnectorServerFactory.java [139:154]
public void destroy() throws Exception {
try {
if (this.rmiConnectorServer != null) {
this.rmiConnectorServer.stop();
}
if (registry != null && locallyCreated) {
Registry reg = registry;
registry = null;
UnicastRemoteObject.unexportObject(reg, true);
}
} finally {
if (this.objectName != null) {
doUnregister(this.objectName);
}
}
}