git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@940292
13f79535-47bb-0310-9956-
ffa450edef68
}
@Override
- protected void destroyInternal() {
+ protected void destroyInternal() throws LifecycleException {
Registry registry = Registry.getRegistry(null, null);
if (onameStringCache != null) {
if (onameMBeanFactory != null) {
registry.unregisterComponent(onameMBeanFactory);
}
+
+ // Destroy our defined Services
+ for (int i = 0; i < services.length; i++) {
+ services[i].destroy();
+ }
}
protected volatile String domain;