tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Einfeldt" <ralph.einfe...@uptime-isc.de>
Subject AW: Sessions
Date Fri, 09 Nov 2001 09:46:37 GMT
The trick is, to put an object that implements 
HttpSessionBindingListener in the session when 
the session is created.

Then this object will be notified when the 
session is removed.

> -----Urspr√ľngliche Nachricht-----
> Von: Roland Carlsson [mailto:roland.c@swetravel.se]
> Gesendet: Freitag, 9. November 2001 09:53
> An: Tomcat Users List
> Betreff: Re: Sessions
> 
> 
> When reading about the 
> javax.servlet.http.HttpSessionBindingListener and 
> HttpSessionBindingEvent I understand that I can be notified 
> when a user adds or remove a object to it's session. But how 
> do I see when the session gets created or removed?? 
> 
> Thanks in advance
> Roland Carlsson
> 
> 
> 
> ----- Original Message ----- 
> From: "Marc Ponschab" <ponschab@isys-software.de>
> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> Sent: Friday, November 09, 2001 9:32 AM
> Subject: Re: Sessions
> 
> 
> > Hi,
> > 
> > the interface javax.servlet.http.HttpSessionBindingListener is your 
> > friend. Implement it with a counter (increase it in valueBound and 
> > decrease it in valueUnbound) and put an instance in every 
> session you use.
> > 
> > Marc
> > 
> > Roland Carlsson wrote:
> > 
> > > Hi!
> > > 
> > > I wanna se how many sessions I have on a host. But since 
> the servlet api doesn't allow me to do this kind of 
> groupfunctions I wonder if there is a "hack" I can do to get 
> this information. Or is there another way of doing this that 
> perhaps is a little more transportable then hackning a Tomcat-class?
> > > 
> > > Thanks in advance
> > > Roland Carlsson
> > 
> > 
> > 
> > --
> > To unsubscribe:   
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message