Author: remy.maucherat(a)jboss.com
Date: 2010-10-19 07:59:15 -0400 (Tue, 19 Oct 2010)
New Revision: 1564
Modified:
trunk/java/org/apache/catalina/core/ServiceMapperListener.java
Log:
- Dynamic host add/remove was not working so well ...
Modified: trunk/java/org/apache/catalina/core/ServiceMapperListener.java
===================================================================
--- trunk/java/org/apache/catalina/core/ServiceMapperListener.java 2010-09-29 19:42:12 UTC
(rev 1563)
+++ trunk/java/org/apache/catalina/core/ServiceMapperListener.java 2010-10-19 11:59:15 UTC
(rev 1564)
@@ -79,8 +79,8 @@
}
} else if (container instanceof Engine) {
// Deploying a host
- container.addContainerListener(this);
Host host = (Host) event.getData();
+ host.addContainerListener(this);
mapper.addHost(host.getName(), host.findAliases(), host);
}
} else if (type.equals(Container.REMOVE_CHILD_EVENT)) {
@@ -91,8 +91,8 @@
mapper.removeContext(container.getName(), context.getName());
} else if (container instanceof Engine) {
// Undeploying a host
- container.removeContainerListener(this);
Host host = (Host) event.getData();
+ host.removeContainerListener(this);
mapper.removeHost(host.getName());
}
} else if (type == Host.ADD_ALIAS_EVENT) {
Show replies by date