tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amy...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans MBeanFactory.java
Date Tue, 13 May 2003 02:25:54 GMT
amyroh      2003/05/12 19:25:54

  Modified:    catalina/src/share/org/apache/catalina/mbeans
                        MBeanFactory.java
  Log:
  Service.removeConnector doesn't unregister connector mbeans.  Call connector.destroy to
unregister.
  
  Revision  Changes    Path
  1.17      +7 -4      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.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- MBeanFactory.java	13 May 2003 00:11:31 -0000	1.16
  +++ MBeanFactory.java	13 May 2003 02:25:53 -0000	1.17
  @@ -111,6 +111,7 @@
   import org.apache.commons.modeler.BaseModelMBean;
   import org.apache.commons.modeler.ManagedBean;
   import org.apache.commons.modeler.Registry;
  +import org.apache.coyote.tomcat5.CoyoteConnector;
   
   
   /**
  @@ -1134,12 +1135,14 @@
               // if (((address.equals("null")) &&
               if ((connAddress==null) && port.equals(connPort)) {
                   service.removeConnector(conns[i]);
  +                ((CoyoteConnector)conns[i]).destroy();
                   break;
               }
               // } else if (address.equals(connAddress))
               if (port.equals(connPort)) {
                   // Remove this component from its parent component
                   service.removeConnector(conns[i]);
  +                ((CoyoteConnector)conns[i]).destroy();
                   break;
               }
           }
  
  
  

---------------------------------------------------------------------
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