Tracking requests without counting
- From: Jack <jackwootton@xxxxxxxxx>
- Date: Thu, 10 Apr 2008 03:47:28 -0700 (PDT)
Hello,
In a Servlet (in Tomcat) is there a way to obtain the number of active
sessions or current requests without having to create some kind of
counter which is incremented as sessions arrive (maybe through a
filter) and decremented as sessions leave (maybe through a filter).
For example, is there something in the ServletContext or anything
similar?
I think the Tomcat manager displays the number of current sessions,
does it use an API for this? If so, can I use the same API within a
servlet?
Many thanks,
Jack
.
- Follow-Ups:
- Re: Tracking requests without counting
- From: gunduzcan
- Re: Tracking requests without counting
- Prev by Date: Java.net.SocketInputStream
- Next by Date: Re: Is there a female programmer?
- Previous by thread: Java.net.SocketInputStream
- Next by thread: Re: Tracking requests without counting
- Index(es):
Relevant Pages
|