Re: Persistent Storage for Webapps

2009-10-13 Thread Tobias Crefeld
Am Mon, 12 Oct 2009 18:57:43 +0200 schrieb Jesse Long j...@unknown.za.net: Thanks for your answers Tobias. Unfortunately we have a very real use case for multiple instances on one host, with different data paths. So, /etc/app.properties is not usable, but /etc/app-context path derived

Persistent Storage for Webapps

2009-10-12 Thread Jesse Long
Hi, In my webapp I need persistent storage. I am building my webapp as a .war file, and copying it into $CATALINE_HOME/webapps/ Tomcat extracts $CATALINA_HOME/webapps/app.war to $CATALINA_HOME/webapps/app/ The war file contains an empty directory /WEB-INF/data . During operations, data files

Re: Persistent Storage for Webapps

2009-10-12 Thread Mikolaj Rydzewski
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

Re: Persistent Storage for Webapps

2009-10-12 Thread Jesse Long
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

Re: Persistent Storage for Webapps

2009-10-12 Thread Mikolaj Rydzewski
Jesse Long wrote: 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? 'persistent' and 'temp' sounds like opposite. -- Mikolaj Rydzewski m...@ceti.pl

Re: Persistent Storage for Webapps

2009-10-12 Thread Tobias Crefeld
Am Mon, 12 Oct 2009 13:01:44 +0200 schrieb Jesse Long j...@unknown.za.net: In my webapp I need persistent storage. I am building my webapp as a .war file, and copying it into $CATALINE_HOME/webapps/ Tomcat extracts $CATALINA_HOME/webapps/app.war to $CATALINA_HOME/webapps/app/ The war

Re: Persistent Storage for Webapps

2009-10-12 Thread Jesse Long
Tobias Crefeld wrote: Am Mon, 12 Oct 2009 13:01:44 +0200 schrieb Jesse Long j...@unknown.za.net: In my webapp I need persistent storage. I am building my webapp as a .war file, and copying it into $CATALINE_HOME/webapps/ Tomcat extracts $CATALINA_HOME/webapps/app.war to

Re: Persistent Storage for Webapps

2009-10-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesse, On 10/12/2009 12:57 PM, Jesse Long wrote: Unfortunately we have a very real use case for multiple instances on one host, with different data paths. So, /etc/app.properties is not usable, but /etc/app-context path derived data.properties

Re: Persistent Storage for Webapps

2009-10-12 Thread Jonathan Mast
So you have multiple contexts on a host, each of which needs separate, persistent storage? If you don't want to keep track of a property files, you could write a bean with a method that takes a HttpRequest as a argument, and returns a file path based on the info in the request. You would have to

Re: Persistent Storage for Webapps

2009-10-12 Thread David Fisher
So you have multiple contexts on a host, each of which needs separate, persistent storage? If you don't want to keep track of a property files, you could write a bean with a method that takes a HttpRequest as a argument, and returns a file path based on the info in the request. You would