Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 895D8F2D3 for ; Tue, 7 May 2013 17:18:10 +0000 (UTC) Received: (qmail 54396 invoked by uid 500); 7 May 2013 17:18:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 54310 invoked by uid 500); 7 May 2013 17:18:07 -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 54299 invoked by uid 99); 7 May 2013 17:18:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 17:18:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jsb_tomcat@360works.com designates 96.38.234.67 as permitted sender) Received: from [96.38.234.67] (HELO hermes.360works.com) (96.38.234.67) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 17:18:02 +0000 Received: from 96-38-234-105.static.gwnt.ga.charter.com (96-38-234-105.static.gwnt.ga.charter.com [96.38.234.105]) by hermes.360works.com (Postfix) with ESMTP id 2C68F1BBBE2D for ; Tue, 7 May 2013 13:20:52 -0400 (EDT) From: Jesse Barnum Content-Type: multipart/alternative; boundary="Apple-Mail=_313428B5-556A-4F61-89E1-F1C62AD41449" Message-Id: <80528D72-E77D-453E-99AE-95561A322F19@360works.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1507\)) Subject: Re: Why is context.xml no longer copied to Catalina/localhost/myapp.xml? Date: Tue, 7 May 2013 13:17:40 -0400 References: <51868449.8040408@apache.org> <5187EE80.3020802@apache.org> <558F9847-19B5-4399-99EB-C589EFD59C01@360works.com> <20130507134049.GC22056@IUPUI.Edu> To: "Tomcat Users List" In-Reply-To: <20130507134049.GC22056@IUPUI.Edu> X-Mailer: Apple Mail (2.1507) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_313428B5-556A-4F61-89E1-F1C62AD41449 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On May 7, 2013, at 9:40 AM, "Mark H. Wood" wrote: > Well, the developer can simply pack into the app. whatever internal > configuration is needed, since he has ready access to the interior of > the app and can deposit on the classpath *.properties, *.xml, or > anything else he wants. He can have no certain knowledge of the app's > runtime environment and should not assume, only specify requirements, > and provide sensible defaults when there are some. >=20 > The deployer, OTOH, has ready access to the app's environment, > including its Context, but should not be assumed to have such access > to the interior of the app. >=20 > So this division of labor depends on the developer's discipline in > distinguishing internal vs. external configuration and coding the > app. to look in the proper place for each. I don't see a good way for > the container to make up for incorrect design in this area. >=20 > --=20 > Mark H. Wood, Lead System Programmer mwood@IUPUI.Edu > Machines should not be friendly. Machines should be obedient. Mark, can you give me an example of a use case where it is useful for = the deployer to modify parameter values in the META-INF/context.xml = file? Assume that at some point, a new version of the application will = be deployed, and also assume that the deployer does not wish to re-apply = the same customizations with each release. Without getting into the pros and cons of your first paragraph (which = places all responsibility for managing app preferences on the = developer), would you agree that the current approach (leaving the = context.xml file in the web app) is not fulfilling one of its intended = purposes, which is allowing the deployer to customize the application = behavior? --Jesse Barnum, President, 360Works http://www.360works.com= --Apple-Mail=_313428B5-556A-4F61-89E1-F1C62AD41449--