tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5 MapperListener.java
Date Fri, 28 Mar 2003 14:24:00 GMT
remm        2003/03/28 06:24:00

  Modified:    coyote/src/java/org/apache/coyote/tomcat5
                        MapperListener.java
  Log:
  - The right key is "host", not "name", which fixes the NPEs.
  
  Revision  Changes    Path
  1.10      +3 -3      jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/MapperListener.java
  
  Index: MapperListener.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/MapperListener.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- MapperListener.java	25 Mar 2003 17:50:21 -0000	1.9
  +++ MapperListener.java	28 Mar 2003 14:23:59 -0000	1.10
  @@ -278,8 +278,8 @@
       private void registerHost(ObjectName objectName)
           throws Exception
       {
  -        String name=objectName.getKeyProperty("name");
  -        log.info("Register host " + name);
  +        String name=objectName.getKeyProperty("host");
  +        log.debug("Register host " + name);
           if( name != null ) {        
               mapper.addHost(name, objectName);
           }
  @@ -291,7 +291,7 @@
        */
       private void unregisterHost(ObjectName objectName)
           throws Exception {
  -        String name=objectName.getKeyProperty("name");
  +        String name=objectName.getKeyProperty("host");
           mapper.removeHost(name);
       }
   
  
  
  

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