markt       2004/05/08 04:05:46

  Modified:    webapps/manager/WEB-INF/classes/org/apache/catalina/manager
                        HTMLManagerServlet.java
  Log:
  Fix bug 21502. Obtain number of active sessions directly.
    - Takes advantage of new method in o.a.c.Manager interface.
    - Patch provided by Angus Mezick.
  
  Remove unused imports identified by Eclipse.
  
  Revision  Changes    Path
  1.11      +2 -4      
jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/HTMLManagerServlet.java
  
  Index: HTMLManagerServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/HTMLManagerServlet.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- HTMLManagerServlet.java   27 Feb 2004 14:59:07 -0000      1.10
  +++ HTMLManagerServlet.java   8 May 2004 11:05:46 -0000       1.11
  @@ -24,7 +24,6 @@
   import java.net.URL;
   import java.net.MalformedURLException;
   import java.text.MessageFormat;
  -import java.util.Date;
   import java.util.Iterator;
   import java.util.List;
   import java.util.Map;
  @@ -37,7 +36,6 @@
   import org.apache.catalina.util.ServerInfo;
   import org.apache.commons.fileupload.FileItem;
   import org.apache.commons.fileupload.DiskFileUpload;
  -import org.apache.commons.fileupload.FileUploadException;
   
   /**
   * Servlet that enables remote management of the web applications deployed
  @@ -375,7 +373,7 @@
                        "/html/sessions?path=" + displayPath);
                   if (context.getManager() != null) {
                       args[4] = new Integer
  -                        (context.getManager().findSessions().length);
  +                        (context.getManager().getActiveSessions());
                   } else {
                       args[4] = new Integer(0);
                   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to