Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 27332 invoked from network); 16 Jan 2002 06:38:07 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 16 Jan 2002 06:38:07 -0000 Received: (qmail 5481 invoked by uid 97); 16 Jan 2002 06:37:54 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 5420 invoked by uid 97); 16 Jan 2002 06:37:53 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 5407 invoked from network); 16 Jan 2002 06:37:52 -0000 X-Server-Uuid: DE90EF36-0C54-4830-9D10-9B1E78E609B4 Message-ID: <439C4B6AA81ED511ABAF00508BDFE0A60218FEE6@HOLMES07> From: "Lauer, Oliver" To: "'Tomcat Users List'" Subject: AW: Get active Sessions from webapp Date: Wed, 16 Jan 2002 07:24:55 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 105BC3688748-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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=20 > Web Architect > W=F6rthstra=DFe 34 > D-50668 K=F6ln > Germany > Tel.: +49 221 148 31277 > Fax: +49 221 148 43963 > Mobil: +49 179 59 064 59 > e-Mail: Oliver.Lauer@axa.de > _____________________________ >=20 -----Urspr=FCngliche 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: =46or additional commands: Troubles with the list: ---------------------------------------------------------------------------= --- 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. Beachte= n= 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. ---------------------------- =46or 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. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D -- To unsubscribe: For additional commands: Troubles with the list: