tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans MBeanFactory.java
Date Wed, 01 Dec 2004 11:08:50 GMT
pero        2004/12/01 03:08:50

  Modified:    catalina/src/share/org/apache/catalina/mbeans
                        MBeanFactory.java
  Log:
  Send destory to remove Context
  
  Revision  Changes    Path
  1.32      +8 -1      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java
  
  Index: MBeanFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- MBeanFactory.java	29 Sep 2004 09:55:38 -0000	1.31
  +++ MBeanFactory.java	1 Dec 2004 11:08:50 -0000	1.32
  @@ -1006,6 +1006,13 @@
               Context context = (Context) host.findChild(pathStr);
               // Remove this component from its parent component
               host.removeChild(context);
  +            if(context instanceof StandardContext)
  +            try {
  +                ((StandardContext)context).destroy();
  +            } catch (Exception e) {
  +                log.warn("Error during context [" + context.getName() + "] destroy ", e);
  +           }
  +   
           }
   
       }
  
  
  

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


Mime
View raw message