tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r391433 - /tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/StandardContext.java
Date Tue, 04 Apr 2006 22:46:46 GMT
Author: remm
Date: Tue Apr  4 15:46:41 2006
New Revision: 391433

URL: http://svn.apache.org/viewcvs?rev=391433&view=rev
Log:
- Fix a bug I found by accident where application listeners are not reinitialized when reloading.
- Port patch.

Modified:
    tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/StandardContext.java

Modified: tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/StandardContext.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/StandardContext.java?rev=391433&r1=391432&r2=391433&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/StandardContext.java
(original)
+++ tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/StandardContext.java
Tue Apr  4 15:46:41 2006
@@ -4446,7 +4446,6 @@
         lifecycle.fireLifecycleEvent(DESTROY_EVENT, null);
 
         instanceListeners = new String[0];
-        applicationListeners = new String[0];
     }
     
     private void resetContext() throws Exception, MBeanRegistrationException {
@@ -4459,6 +4458,10 @@
 
         // Bugzilla 32867
         distributable = false;
+
+        applicationListeners = new String[0];
+        applicationEventListenersObjects = new Object[0];
+        applicationLifecycleListenersObjects = new Object[0];
 
         if(log.isDebugEnabled())
             log.debug("resetContext " + oname + " " + mserver);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message