Return-Path: Delivered-To: apmail-beehive-dev-archive@www.apache.org Received: (qmail 88314 invoked from network); 4 Apr 2006 20:53:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2006 20:53:56 -0000 Received: (qmail 49697 invoked by uid 500); 4 Apr 2006 20:53:56 -0000 Delivered-To: apmail-beehive-dev-archive@beehive.apache.org Received: (qmail 49675 invoked by uid 500); 4 Apr 2006 20:53:55 -0000 Mailing-List: contact dev-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Developers" Delivered-To: mailing list dev@beehive.apache.org Received: (qmail 49664 invoked by uid 99); 4 Apr 2006 20:53:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 13:53:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ekoneil@gmail.com designates 66.249.82.204 as permitted sender) Received: from [66.249.82.204] (HELO xproxy.gmail.com) (66.249.82.204) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 13:53:55 -0700 Received: by xproxy.gmail.com with SMTP id h26so1070891wxd for ; Tue, 04 Apr 2006 13:53:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=g8q7AKjeBOcdVa8ZFiMlxE3mWRdhTu3qv4GdddQohjkbBVQ5IZ2suK6cYAnO9PuIykZdOiYZWZUk9vQsMusjR/MrybeN3TwXv1f0RwfPEisJVsE/RWKXF2o87RYv6xRfPCJSwjvPGY1N4+dK95gZolrlAsfPUnxhe/tsRUy6CBw= Received: by 10.70.32.16 with SMTP id f16mr574239wxf; Tue, 04 Apr 2006 13:53:34 -0700 (PDT) Received: by 10.70.37.15 with HTTP; Tue, 4 Apr 2006 13:53:34 -0700 (PDT) Message-ID: Date: Tue, 4 Apr 2006 14:53:34 -0600 From: "Eddie O'Neil" To: "Beehive Developers" Subject: Re: netui -- adding a required ServletContextListener In-Reply-To: <4432D164.4050402@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4432D164.4050402@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Cool -- it also gives us the ability to initialize the NetUIConfig object in a single place and put it in the ServletContext. This will free us from this ridiculous race condition caused by using a static to store the bean in ConfigUtil. Mea culpa. ;) Thanks... Eddie On 4/4/06, Rich Feit wrote: > Seems fine to me. It doesn't buy us anything currently (since > PageFlow{Jsp,Faces}Filter is required, so its init() always runs), but > it does free us from depending on > PageFlowActionServlet/PageFlow{Jsp,Faces}Filter in case we want to move > away from them in the future. > > Rich > > > Eddie O'Neil wrote: > > All-- > > > > NetUI has a need for a common place to do setup and tear down tasks > > for the framework, and as such, I'd like to make a > > ServletContextListener a requirement as a place to do this work. > > > > This provides a place to do NetUIConfig initialization as well as a > > place to remove ServletContext attributes that NetUI (and Struts) put > > there. I've had some trouble with class reloading in Tomcat that > > requires the latter problem be fixed in order for the framework(s) to > > reinitialize correctly after classes are reloaded. > > > > Thoughts on this? Ideally, we'd make this an upgrade requirement > > for moving from Beehive 1.0 to Beehive V.Next so that we can put the > > initialization code in a single place. Am open to suggestions on > > that. > > > > Ideally, this would be something called NetUIContextListener that > > has interceptor chains for "initialize" and "destroy" phases with > > implementations that plug-in to provide default behavior for each of > > these phases. > > > > Thoughts / ideas? > > > > Eddie > > > > > >