logo       

Re: session count in resin 2.1.11: msg#00062

text.xml.resin.user

Subject: Re: session count in resin 2.1.11

perhaps it's the typo in your code:

<br>hostAmdin.getName():

should be

<br>hostAdmin.getName():

++Luke

At 10:55 08.03.2004 -0800, you wrote:
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>




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise