"Winkel, Matthias; 2854" wrote:

> Hi!
>
> I am looking for a possibilty to implement a counter, that is incremented
> whenever a new session is created in my web application.
>
> In other words:
> I need something that sends an event to my counter object, when a session is
> created. One possibilty is to send this event manually to the counter object
> on every jsp-page, but this is not flexible.
>
> Any ideas how this could be done? (f.e. by replacing the session creator
> with my own session creator - or something like that?)
>
> Regards
> Matthias Winkel
> [...]

Hi :-)   I am not sure, is the following  possible ?
  -  use HttpSessionBindingListener, in valueBound(...),
      send a message to your counter.
  - put the counter in ServletContext, and everytime when
     making a new Httpsession,  update this counter.


Bo
Feb.28, 2001






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to