Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 89720 invoked from network); 7 May 2003 21:03:11 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 7 May 2003 21:03:11 -0000 Received: (qmail 23673 invoked by uid 97); 7 May 2003 21:05:18 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 23666 invoked from network); 7 May 2003 21:05:17 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 7 May 2003 21:05:17 -0000 Received: (qmail 88303 invoked by uid 500); 7 May 2003 21:02:54 -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 88283 invoked from network); 7 May 2003 21:02:53 -0000 Received: from unknown (HELO mars.bdnacorp.com) (67.122.120.11) by daedalus.apache.org with SMTP; 7 May 2003 21:02:53 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: handle to all active sessions in Tomcat Date: Wed, 7 May 2003 14:03:00 -0700 Message-ID: <8789AB7F3B5ADE44997BBAB05F33BEEF481130@mars.bdnacorp.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: handle to all active sessions in Tomcat Thread-Index: AcMRAv8F7nXmW/NdSce/3WUf2ioOvwD2IPEg From: "Abhijat Thakur" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I implemented the underlying class and when a servlet in which the = session is created is called the valueBound method of SessionObject is = never called. All i did was just implement this class. Do i have to = register the event handler class SessionObject as a listener. What am i = missing?=20 thanks abhijat -----Original Message----- From: mike jackson [mailto:mjackson@cdi-hq.com] Sent: Friday, May 02, 2003 4:31 PM To: 'Tomcat Users List' Subject: RE: handle to all active sessions in Tomcat Something like this, however you'll have to implement the singleton list yourself. public class SessionObject implements HttpSessionBindingListener { protected HttpSession s; public SessionObject( HttpSession s ) { this.s =3D s; } /** * implementation of interface method */ public void valueBound( HttpSessionBindingEvent e ) { // register with singleton session list } /** * implementation of interface method */ public void valueUnbound( HttpSessionBindingEvent e ) { // deregister with singleton session list=09 }=09 =09 public HttpSession getSession () { return s; } } --mikej -=3D------ mike jackson mjackson@cdi-hq.com > -----Original Message----- > From: Abhijat Thakur [mailto:athakur@bdnacorp.com] > Sent: Friday, May 02, 2003 3:08 PM > To: tomcat-user@jakarta.apache.org > Subject: handle to all active sessions in Tomcat >=20 > Hi, >=20 > I am using Tomcat as my web server and servlet engine. For a parcticular > case i need to get hold of all my sessions and invalidate them. I could > not find an API through which i could get a handle to all the active > sessions on Tomcat. How can i get a handle to all the active sessions on > Tomcat. >=20 > thanks >=20 > abhijat >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org