J
Jack
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
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