Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 359 invoked from network); 12 Sep 2007 15:40:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2007 15:40:05 -0000 Received: (qmail 8197 invoked by uid 500); 12 Sep 2007 15:39:46 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 8149 invoked by uid 500); 12 Sep 2007 15:39:45 -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 8102 invoked by uid 99); 12 Sep 2007 15:39:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 08:39:45 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [62.112.192.21] (HELO smtp.enternet.hu) (62.112.192.21) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 15:39:42 +0000 Received: from [62.112.206.119] (helo=mailnew.iteam.hu) by smtp.enternet.hu with esmtpa (Exim 4) id 1IVUJD-00008Y-Fs for users@tomcat.apache.org; Wed, 12 Sep 2007 17:39:19 +0200 Received: from 80.99.52.125 (SquirrelMail authenticated user bali) by mailnew.iteam.hu with HTTP; Wed, 12 Sep 2007 17:39:19 +0200 (CEST) Message-ID: <5020.80.99.52.125.1189611559.squirrel@mailnew.iteam.hu> Date: Wed, 12 Sep 2007 17:39:19 +0200 (CEST) Subject: Re: Context deletion on redeploy From: =?iso-8859-2?Q?Ter=E9nyi_Bal=E1zs?= To: "Tomcat Users List" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org Christopher, First of all thanks for the reply. > > 4. Using Tomcat Administrator application the admin changes environment settings defined in conf/Catalina/localhost/warname.xml (which was extracted from the war). > > Why would you make an administrator do this when you can make it part of the deployment process? Because I'm not the one who makes the deployment. Think on an enterprise application which has new versions, which customers (many!) can download and deploy over the old one. All of them have different settings I don't know. > > The only way was to put resource links to the war/META-INF/context.xml that link to GlobalResources. > > This isn't true. You can put "real" resources into META-INF/context.xml. Why not just do that? It is constant (like hardcoded in the application). I can't say to customers: unpack the war, modify a file each time you deploy a new version. Thats OK that I can overcome on that with some sort of automation, but that is what JNDI is for: storing runtime settings. Regards, Bal�zs > > But now I have to deploy the same unmodified war many times to the same tomcat so I have to use different settings at each webapp. > > I would highly recommend changing your deployment strategy so that you are deploying a /modified/ copy of your WAR file each time -- one that has the correct settings for your environment. > > -chris > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org