Sessions statistics ver. 1.3

This is a sessions listener (as per Servlet API 2.3). This component lets you collect statistics for your sessions: how many sessions are active, what was the peak value for active sessions, total counter for sessions, minimal, maximal and average life time for sessions. Component saves data in servlet context, so you may use them later in your applications.

How to use it:

a) download sesslist.jar and save it in WEB-INF/lib

b) describe this listener in web.xml.


In this case listener will be on for the each your JSP file. And live statistics for sessions will be accumulated in servlet context.

How to use accumulated data.

Coldtags suite provides a special taglib for this task. So you may use an appropriate custom JSP tag for data reading. E.g.:

<!-- open sessions -->

See Sessions stat taglib for details.

Note: Order matters in web.xml. Listeners should be declared after context parameters and above servlets.

   For downloading:

    Sessions listener:  sesslist.jar

 ©  Coldbeans     Comments?

See also JSOS - the largest collection of servlets and filters.

Also in JSOS: