tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lauer, Oliver" <Oliver.La...@AXA.de>
Subject AW: Get active Sessions from webapp
Date Wed, 16 Jan 2002 06:24:55 GMT
Have a look at Craig's answer:

In a servlet 2.3 environment (Tomcat 4), you can accomplish your goal
without getting into the innards of the container.  Simple create and
register an HttpSessionListener, which will be notified every time a
session within your app is created or destroyed -- it's easy to maintain a
local HashMap (or something) of the currently active sessions.

Craig

> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> Wörthstraße 34
> D-50668 Köln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: Oliver.Lauer@axa.de
> _____________________________
> 


-----Ursprüngliche Nachricht-----
Von: Cavan Morris [mailto:cavan.morris@worldnet.att.net]
Gesendet: Mittwoch, 16. Januar 2002 04:58
An: Tomcat Users List
Betreff: Get active Sessions from webapp


Does anyone know if there's a way to get some kind of a reference to all of
the active sessions in a webapp?  I just want to know how many Sessions
there are.
I'd just like to be able to say something like "There are currently X Number
of users online" on some page.

-Cavan Morris


--
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>


------------------------------------------------------------------------------
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich.
Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher
Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung,
Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht
 ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten
Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir
Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen.
----------------------------
For legal and security reasons the information provided in this e-mail is not legally binding.
Upon request we would be pleased to provide you with a legally binding confirmation in written
form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the
content of this e-mail is not permitted. This message is exclusively for the person addressed
or their representative. If you are not the intended recipient of this message and its contents,
please notify the sender immediately.

==============================================================================


--
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