tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5 MapperListener.java
Date Fri, 04 Apr 2003 22:22:25 GMT
costin      2003/04/04 14:22:25

  Modified:    coyote/src/java/org/apache/coyote/tomcat5
                        MapperListener.java
  Log:
  Avoid problems if the engine is registered after the mapper.
  
  Revision  Changes    Path
  1.11      +1 -0      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.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- MapperListener.java	28 Mar 2003 14:23:59 -0000	1.10
  +++ MapperListener.java	4 Apr 2003 22:22:25 -0000	1.11
  @@ -264,6 +264,7 @@
           throws Exception
       {
           ObjectName engineName=new ObjectName(domain + ":type=Engine");
  +        if( ! mBeanServer.isRegistered(engineName)) return;
           //if (container instanceof Engine) {
           String defaultHost = (String)mBeanServer.getAttribute(engineName, "defaultHost");
           // This should probablt be called later 
  
  
  

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