Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 91625 invoked from network); 21 Apr 2006 19:06:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Apr 2006 19:06:23 -0000 Received: (qmail 45926 invoked by uid 500); 21 Apr 2006 19:06:13 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 45901 invoked by uid 500); 21 Apr 2006 19:06:13 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 45890 invoked by uid 99); 21 Apr 2006 19:06:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Apr 2006 12:06:13 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=NO_REAL_NAME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of pantichd@firstenergycorp.com designates 205.132.73.40 as permitted sender) Received: from [205.132.73.40] (HELO firstenergycorp.com) (205.132.73.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Apr 2006 12:06:12 -0700 In-Reply-To: Subject: Re: [OT] Survey - how do others accomplish this... To: "Struts Users Mailing List" X-Mailer: Lotus Notes Release 6.5.4 CCH5 September 12, 2005 Message-ID: From: pantichd@firstenergycorp.com Date: Fri, 21 Apr 2006 15:05:26 -0400 MIME-Version: 1.0 X-MIMETrack: Serialize by Router on mail03/Servers/FirstEnergy(Release 6.5.4FP2 | September 26, 2005) at 04/21/2006 15:05:27, Itemize by SMTP Server on GW11/Servers/FirstEnergy(Release 6.5.2|June 01, 2004) at 04/21/2006 03:04:53 PM, Serialize by Router on GW11/Servers/FirstEnergy(Release 6.5.2|June 01, 2004) at 04/21/2006 03:04:55 PM, Serialize complete at 04/21/2006 03:04:55 PM Content-Type: text/plain; charset="US-ASCII" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I hope it's ok that I'm asking this here. I know it's not technically a Struts-related question. Based on the link Wendy provided, I googled "ServletContextListener" and found this (http://www.stardeveloper.com/articles/display.html?article=2001111901&page=1) which sounded like exactly what I'm looking for. Thanks Wendy! Also, liked the SessionListener example later in the article and tried it. It seems to increment the activeSessions counter just fine as long as the session is being created by a jsp or servlet. However, it doesn't seem to do anything if I open a new browser window and bring up a simple html page in that webapp. I'm sure there is a good explanation for it but I don't understand. Can anyone explain it to me? Would this be a good way to monitor how many active sessions a webapp has or is there a better, more efficient, more standard way of doing it? Thanks! David "Wendy Smoak" To "Struts Users Mailing List" 04/20/2006 02:11 PM cc Subject Please respond to Re: [OT] Survey - how do others "Struts Users accomplish this... Mailing List" On 4/20/06, pantichd@firstenergycorp.com wrote: > I thought a cleaner way would be to have a servlet that starts when the > webapp starts. The servlet would look up the values in some database (or > properties file(s)) and place the values in the app context. Initially, we > thought about doing this at the time a user logs into the site but storing > that info in everybody's session is inefficient. > > How have others dealt with this? Thanks for any feedback. >From this morning. :) http://www.nabble.com/Re%3A-Class-that-%22listens%22-is-app-%22alive%22-p4008084.html -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org ----------------------------------------- The information contained in this message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately, and delete the original message. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org