Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 4210 invoked from network); 25 Jun 2006 01:44:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jun 2006 01:44:59 -0000 Received: (qmail 95489 invoked by uid 500); 25 Jun 2006 01:44:46 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 95460 invoked by uid 500); 25 Jun 2006 01:44:46 -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 95449 invoked by uid 99); 25 Jun 2006 01:44:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jun 2006 18:44:45 -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 rnmixon@qwest.net designates 63.231.195.115 as permitted sender) Received: from [63.231.195.115] (HELO mpls-qmqp-04.inet.qwest.net) (63.231.195.115) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jun 2006 18:44:44 -0700 Received: from mpls-pop-04.inet.qwest.net (mpls-pop-04.inet.qwest.net [63.231.195.4]) by mpls-qmqp-04.inet.qwest.net (Postfix) with QMQP id 5D88822DCCA for ; Sun, 25 Jun 2006 01:44:23 +0000 (UTC) Received: from vdsl-130-13-244-246.phnx.qwest.net (HELO smartfish) (130.13.244.246) by mpls-pop-04.inet.qwest.net with SMTP; 25 Jun 2006 01:44:22 -0000 Date: Sat, 24 Jun 2006 18:44:24 -0700 Message-ID: <058b01c697f8$e3ac20b0$8a01a8c0@swamp.home> From: "Richard Mixon" To: "'Tomcat Users List'" Reply-To: Subject: RE: Best Practice for properties files MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <96F9CF2529A0734BA946DDBDDB0BCF5CB3AD8B@vamail.plexsci.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2663 Thread-Index: AcaW4rVKxWldgc0yQm2TSftX2WlQBwAAS1FwAEUGSdA= X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Paul, are you using the deployer application to deploy your app (e.g. apache-tomcat-5.5.17-deployer)? If so, then it is very easy to modify the build.xml to customize the log4j.properties, app.properties and any other file, and then deploy it properly. You could even have a different ant target for each different instance of the webapp.war file. Here's an example of the build.xml that we setup. In this case most of the example deals with setting the JDBC connection to the correct database. HTH - Richard ... ... Customizing ${webapp.path}/META-INF/${webapp}.xml Changing hibernate.connection.driver_class to ${jdbc.connection.driver_class} ... -----Original Message----- From: Paul Mendelson [mailto:pmendelson@plexsci.com] Sent: Friday, June 23, 2006 9:46 AM To: Tomcat Users List Subject: Best Practice for properties files I have a fairly normal application that I am deploying on a tomcat 5.5 server. My application uses log4j for its internal logging and I have a log4j.properties file that I keep in web/WEB-INF/classes. I also have a regular app.properties file that I keep in web/WEB-INF. I deploy my application to my tomcat server by placing app.war in the proper directory. My question is if I am running my application on 4 or 5 different tomcat servers and toe log4j.properties and app.properties file needs to be set up different on each server what is the best way to deploy and maintain those files? I very much want to create a single app.war file and let each system administrator customer there properties without needing to synchronize with me. Any advice is appreciated. --------------------------------------------------------------------- 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