Hi,
What is the best way to get a count of
current live sessions? I tried using ApplicationAdmin and ServerAdmin but
got "cannot resolve symbol" errors on them from the comipler. I see
com.caucho.http.admin in resin.jar and resin.jar iss on the classpath. Any
idea? Thanks -Qiao
== status.jsp ==
<@page import="com.caucho.http.admin.*"
%>
<%
ApplicationAdmin appAdmin = new
ApplicationAdmin(application);
HostAmdin hostAdmin =
appAdmin.getHostAdmin();
ServerAdmin serverAdmin =
appAdmin.getServerAdmin();
%>
<html>
<body>
<p>
<br>appAdmin.getActiveSessionCount()
: <%= appAdmin.getActiveSessionCount()
%>
<br>
<br>hostAmdin.getName(): <%=
hostAmin.getName()
%>
<br>
<br>serverAdmin.getActiveConnectionCount():
<%= serverAdmin.getActiveConnectionCount()
%>
<br>serverAdmin.getConnectionCount() : <%=
serverAdmin.getConnectionCount()
%>
<br>
</body>
</html>