Author: jfrederic.clere(a)jboss.com
Date: 2009-08-05 04:49:19 -0400 (Wed, 05 Aug 2009)
New Revision: 2522
Modified:
trunk/mod_cluster/src/main/java/org/jboss/modcluster/CatalinaEventHandlerAdapter.java
Log:
Fix for MODCLUSTER-89.
Modified:
trunk/mod_cluster/src/main/java/org/jboss/modcluster/CatalinaEventHandlerAdapter.java
===================================================================
---
trunk/mod_cluster/src/main/java/org/jboss/modcluster/CatalinaEventHandlerAdapter.java 2009-07-30
14:12:12 UTC (rev 2521)
+++
trunk/mod_cluster/src/main/java/org/jboss/modcluster/CatalinaEventHandlerAdapter.java 2009-08-05
08:49:19 UTC (rev 2522)
@@ -79,6 +79,9 @@
{
// Deploying a host
container.addContainerListener(this);
+ Host host = (Host) child;
+ if (host != null)
+ host.addContainerListener(this);
}
}
else if (type.equals(Container.REMOVE_CHILD_EVENT))
@@ -92,6 +95,9 @@
else if (container instanceof Engine)
{
// Undeploying a host
+ Host host = (Host) child;
+ if (host != null)
+ host.removeContainerListener(this);
container.removeContainerListener(this);
}
}
Show replies by date