| Author |
how to find total active session at the given moment
|
Raghuveer Rawat
Ranch Hand
Joined: Apr 03, 2003
Posts: 102
|
|
hi I want to find total active session at a given moment. can anyone tell me this. Thanks
|
Raghuveer Rawat<br />SCJP2
|
 |
qingwu wang
Ranch Hand
Joined: Feb 19, 2003
Posts: 147
|
|
|
|
Thanks...qingwu<br />When I open my eyes,I see your pretty face.
|
 |
Andres Gonzalez
Ranch Hand
Joined: Nov 27, 2001
Posts: 1561
|
|
|
you can use the HttpSessionListener interface to achieve that.
|
I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
|
 |
steve souza
Ranch Hand
Joined: Jun 26, 2002
Posts: 852
|
|
Sample code that does just that (and more) can be found at http://www.javaperformancetuning.com/tools/jamon/#SampleCode. JAMon is an easy to use (a start() and stop() method) API that measures performance, scalability and counts "things" in general. For example in your case you could count sessions. steve - http://www.jamonapi.com
|
http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
|
 |
 |
|
|
subject: how to find total active session at the given moment
|
|
|