Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 28165 invoked from network); 12 Oct 2009 14:32:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Oct 2009 14:32:27 -0000 Received: (qmail 9975 invoked by uid 500); 12 Oct 2009 14:32:23 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 9917 invoked by uid 500); 12 Oct 2009 14:32:22 -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 9905 invoked by uid 99); 12 Oct 2009 14:32:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2009 14:32:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [80.68.94.31] (HELO mta.unknown.za.net) (80.68.94.31) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2009 14:32:11 +0000 Received: from bpet (dsl-243-84-77.telkomadsl.co.za [41.243.84.77]) by mta.unknown.za.net (Postfix) with ESMTPSA id A88C24A55B for ; Mon, 12 Oct 2009 16:31:50 +0200 (SAST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by bpet (Postfix) with ESMTP id 0A8224F412B for ; Mon, 12 Oct 2009 16:31:46 +0200 (SAST) Message-ID: <4AD33DD1.3050505@unknown.za.net> Date: Mon, 12 Oct 2009 16:31:45 +0200 From: Jesse Long User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Persistent Storage for Webapps References: <4AD30C98.2020309@unknown.za.net> <4AD315EA.1010003@ceti.pl> In-Reply-To: <4AD315EA.1010003@ceti.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Mikolaj Rydzewski wrote: > Jesse Long wrote: >> Question: id /WEB-INF/ in the extracted directory the correct place for >> persistent data storage? If not, where is? > No, WEB-INF is not a correct place app generated files. > You can use any directory outside of context root. >> My goal is to find a consistent way of creating persistent data relative >> to the context. I dont want to have to configure context parameters with >> data directory paths for each installation. > It depends :-) > You can have a code that generates path to storage directory based on > host name, based on app name, based on server's IP, reads it from JNDI > context, etc. With such solution you don't need any context > parameters, you need one war file (I mean war file is not environment > dependant). > Thanks for your answers. I still like the concept of having the container allocate persistent storage space. Can I configure tomcat to not delete from the "javax.servlet.context.tempdir" directory? Thanks, Jesse --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org