Tomcat Users List'
>Subject: RE: Counting active sessions if server restarts very often
>
>The sessionWillActivate() method is called every time a session
activates.
>If your sessions are persistent, then each one will be re-activated
when
>the
>server restarts, so this method
s,
Andy
-Original Message-
From: Christian Hauser [mailto:[EMAIL PROTECTED]
Sent: 04 September 2003 10:51
To: Tomcat Users List
Subject: Re: Counting active sessions if server restarts very often
Thank you, Andrew, for your fast reply.
I hope this works, but I still don't undestand w
ement the count.
This should eliminate the need to store anything in the session.
Hope this helps
Andy
-Original Message-
From: Christian Hauser [mailto:[EMAIL PROTECTED]
Sent: 04 September 2003 10:01
To: Tomcat Users List
Subject: Re: Counting active sessions if server restarts very
September 2003 10:01
To: Tomcat Users List
Subject: Re: Counting active sessions if server restarts very often
Shapira, Yoav wrote:
> Howdy,
>
>
>>Is there an other way to implement this? Maybe by saving the variable
>>activeSessions to a session (which is restored when the s
Shapira, Yoav wrote:
Howdy,
Is there an other way to implement this? Maybe by saving the variable
activeSessions to a session (which is restored when the server has
restarted)?
This is not a bad idea, and might be the easiest way. A DB write on
shutdown/read on startup is also an option.
To r
When the session is created add an attribute that implements
HttpSessionActivationListener. When the server stops the
sessionWillPassivate method will be called. When the server restarts the
sessionDidActivate method will be called. Use those methods in
conjunction with your HttpSessionListene
Howdy,
>Is there an other way to implement this? Maybe by saving the variable
>activeSessions to a session (which is restored when the server has
>restarted)?
This is not a bad idea, and might be the easiest way. A DB write on
shutdown/read on startup is also an option.
Yoav Shapira
This e-