Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 42156 invoked from network); 26 Apr 2006 11:23:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2006 11:23:22 -0000 Received: (qmail 58748 invoked by uid 500); 26 Apr 2006 11:23:09 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 58534 invoked by uid 500); 26 Apr 2006 11:23:08 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 58523 invoked by uid 99); 26 Apr 2006 11:23:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 04:23:08 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [213.225.68.12] (HELO mx.webcenter.no) (213.225.68.12) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 26 Apr 2006 04:23:07 -0700 Received: from sanexch.uniqueno.root ([10.159.0.68]) by mx.webcenter.no (SAVSMTP 3.1.3.37) with SMTP id M2006042613220025240 for ; Wed, 26 Apr 2006 13:22:00 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Unbalanced Session created/destroyed Date: Wed, 26 Apr 2006 13:24:39 +0200 Message-ID: <8DF2F537FB6E7948BE469827A1CBE29886183E@sanexch.uniqueno.root> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Unbalanced Session created/destroyed Thread-Index: AcZpJAGTIlVuP4wuTCCZCn2oyu+y1g== From: "Martin Goldhahn" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N In order to track down an error in my servlet application, I'm trying to trace when sessions are created and destroyed. For this I defined a HttpSessionListener.=20 public void sessionCreated(HttpSessionEvent se) { se.getSession().setAttribute(ATTRIBUTE, this); if (trace.wanted(UqTrace.FINE)) { trace.print("Session created"); } } public void sessionDestroyed(@SuppressWarnings("unused") HttpSessionEvent se) { boolean istrace =3D trace.wanted(UqTrace.FINE); for (UqDisposable d : disposables) { if (istrace) { trace.print("Disposing Dispoable: " + d.toString()); } d.dispose(); } if (istrace) { trace.print("Session disposed"); } } According to the log file there are more sessions destroyed than created. Dows this indicate an error or can this be ignored? Martin --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org