Rachid,
If your application uses HttpSessions, then you can use the
java.servlet.http.HttpSessionListener class to monitor the creation and
destruction of HttpSessions. You need to configure the class that implements
HttpSessionListener in the deployment descriptor of your web application.
ex.
It is impossible to show how many users. What is possible is to show how
many sessions are open and what is the idle time for the session at a
given moment. If you use tomcat there is a manager (not admin) app that
comes with it. It is pretty cool to play around with it. You can do
other things
http://developer.java.sun.com/developer/EJTechTips/2003/tt0626.html
Scroll down to SERVLET LIFE CYCLE LISTENERS
That's a hint, the rest is up to you.
--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx
-Original Message-
3 matches
Mail list logo