Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 36829 invoked from network); 1 Oct 2003 17:02:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Oct 2003 17:02:36 -0000 Received: (qmail 73471 invoked by uid 500); 1 Oct 2003 17:02:25 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 73408 invoked by uid 500); 1 Oct 2003 17:02:24 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 73395 invoked from network); 1 Oct 2003 17:02:24 -0000 Received: from unknown (HELO ms-smtp-03.nyroc.rr.com) (24.92.226.153) by daedalus.apache.org with SMTP; 1 Oct 2003 17:02:24 -0000 Received: from apache.org (roc-24-93-14-71.rochester.rr.com [24.93.14.71]) by ms-smtp-03.nyroc.rr.com (8.12.5/8.12.2) with ESMTP id h91H2O7w027539 for ; Wed, 1 Oct 2003 13:02:27 -0400 (EDT) Message-ID: <3F7B08C9.3000005@apache.org> Date: Wed, 01 Oct 2003 13:03:05 -0400 From: Ted Husted Organization: Apache Software Foundation - Jakarta Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: cvs commit: jakarta-commons-sandbox/chain/src/java/org/apache/commons/chain/web/servlet/config ChainServlet.java References: <20031001042300.44937.qmail@minotaur.apache.org> In-Reply-To: <20031001042300.44937.qmail@minotaur.apache.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N craigmcc@apache.org wrote: > Add ChainListener as an alternative configuration mechanism for > Servlet 2.3 or later systems (it takes advantage of the getResourcePaths() > method on ServletContext to scan all JAR files in "/WEB-INF/lib" for > "META-INF/chain-config.xml" resources, and loads them automatically). I had trouble with the JAR block. // Parse the resources in any embedded JAR files Set jars = context.getResourcePaths("/WEB-INF/lib"); ... It tossed an exception for JARs that did not have a META-INF/chain-config.xml resource to parse. I commented it this out, and it otherwise dropped in as a replacement for the ChainServlet. Loading multiple comma-delimited configs worked find too. Using the META-INF to signal which JARs to scan is a very cool idea, but people still might want to cite the files to load the old-fashioned way. So, for discussion purposes, I did a ChainListener2 that allows the Chain configurations to be specified from a web resource, or a classloader resource, or both. Of course, we could also do the JAR scanning as well. -Ted. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org