The question is: Why turn a hashmap into an array just to take its
length when you already have a method that returns the number of
sessions?  This will make the life of people who write session managers
that DON'T store all the active sessions in memory easier.


--- HTMLManagerServlet.java     2003-03-19 04:18:34.000000000 -0500
+++ HTMLManagerServlet.java     2003-07-08 09:22:04.000000000 -0400
@@ -403,7 +403,7 @@
                     (request.getContextPath() +
                      "/html/sessions?path=" + displayPath);
                 args[4] =
-                    new
Integer(context.getManager().findSessions().length);
+                    new
Integer(context.getManager().getActiveSessions());
                 writer.print
                     (MessageFormat.format(APPS_ROW_DETAILS_SECTION,
args));

Angus Mezick
GuideStar - Philanthropic Research Inc.
427 Scotland St.
Williamsburg, Virginia 23185
PHONE: (757)299-4631 x35  FAX:(757)229-8912
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
www.guidestar.org <http://www.guidestar.org>

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

Reply via email to