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/core StandardContext.java mbeans-descriptors.xml
Date Tue, 29 Apr 2003 00:59:03 GMT
amyroh      2003/04/28 17:59:03

  Modified:    catalina/src/share/org/apache/catalina/core
                        StandardContext.java mbeans-descriptors.xml
  Log:
  Fix to return String instead of ObjectName for WebModule getServlets.
  
  Revision  Changes    Path
  1.48      +4 -4      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java
  
  Index: StandardContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- StandardContext.java	28 Apr 2003 05:19:31 -0000	1.47
  +++ StandardContext.java	29 Apr 2003 00:59:02 -0000	1.48
  @@ -4959,11 +4959,11 @@
        *
        * @return list of all servlets ( we know about )
        */
  -    public ObjectName[] getServlets() {
  +    public String[] getServlets() {
           int size=wrappers.size();
  -        ObjectName result[]=new ObjectName[size];
  +        String result[]=new String[size];
           for( int i=0; i< size; i++ ) {
  -            result[i]=((StandardWrapper)wrappers.get(i)).getJmxName();
  +            result[i]=((StandardWrapper)wrappers.get(i)).getObjectName();
           }
           return result;
       }
  
  
  
  1.13      +1 -1      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/mbeans-descriptors.xml
  
  Index: mbeans-descriptors.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/mbeans-descriptors.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- mbeans-descriptors.xml	28 Apr 2003 05:19:31 -0000	1.12
  +++ mbeans-descriptors.xml	29 Apr 2003 00:59:02 -0000	1.13
  @@ -179,7 +179,7 @@
         
       <attribute name="servlets"
                  description="JSR77 list of servlets"
  -               type="[Ljavax.management.ObjectName;"
  +               type="[Ljava.lang.String;"
                  writeable="false"/>
   
       <attribute name="reloadable"
  
  
  

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