tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core StandardContext.java
Date Fri, 21 Sep 2001 16:28:58 GMT
craigmcc    01/09/21 09:28:58

  Modified:    catalina/src/share/org/apache/catalina/core Tag:
                        tomcat_40_branch StandardContext.java
  Log:
  Commit a proposed fix for Bugzilla #3733.  Now, on an application reload
  (caused by automatic detection of modified classes, or by manual request
  through the Manager servlet), all registered listeners, filters, and
  load-on-startup servlets will be reinitialized before the saved sessions
  are deserialized and reloaded.
  
  PR:  Bugzilla #3733
  Submitted by:  Jon Stevens <jon@latchkey.com>
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.78.2.1  +13 -13    jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java
  
  Index: StandardContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
  retrieving revision 1.78
  retrieving revision 1.78.2.1
  diff -u -r1.78 -r1.78.2.1
  --- StandardContext.java	2001/09/15 23:31:29	1.78
  +++ StandardContext.java	2001/09/21 16:28:57	1.78.2.1
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
1.78 2001/09/15 23:31:29 craigmcc Exp $
  - * $Revision: 1.78 $
  - * $Date: 2001/09/15 23:31:29 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
1.78.2.1 2001/09/21 16:28:57 craigmcc Exp $
  + * $Revision: 1.78.2.1 $
  + * $Date: 2001/09/21 16:28:57 $
    *
    * ====================================================================
    *
  @@ -142,7 +142,7 @@
    *
    * @author Craig R. McClanahan
    * @author Remy Maucherat
  - * @version $Revision: 1.78 $ $Date: 2001/09/15 23:31:29 $
  + * @version $Revision: 1.78.2.1 $ $Date: 2001/09/21 16:28:57 $
    */
   
   public class StandardContext
  @@ -2466,15 +2466,6 @@
           // Binding thread
           oldCCL = bindThread();
   
  -        // Restart our session manager (AFTER naming context recreated/bound)
  -        if ((manager != null) && (manager instanceof Lifecycle)) {
  -            try {
  -                ((Lifecycle) manager).start();
  -            } catch (LifecycleException e) {
  -                log(sm.getString("standardContext.startingManager"), e);
  -            }
  -        }
  -
           // Restart our application event listeners and filters
           if (ok) {
               if (!listenerStart()) {
  @@ -2512,6 +2503,15 @@
   
           // Reinitialize all load on startup servlets
           loadOnStartup(children);
  +
  +        // Restart our session manager (AFTER naming context recreated/bound)
  +        if ((manager != null) && (manager instanceof Lifecycle)) {
  +            try {
  +                ((Lifecycle) manager).start();
  +            } catch (LifecycleException e) {
  +                log(sm.getString("standardContext.startingManager"), e);
  +            }
  +        }
   
           // Unbinding thread
           unbindThread(oldCCL);
  
  
  

Mime
View raw message