JSP : Apache/Tomcat : Where best to store external csv files?
843840May 15 2008 — edited Jul 29 2008Hello,
I am currently developing a web application using JSP, MySQL on Apache Tomcat. I am using Netbeans 6.1 as an IDE.
My web app needs to read in csv files. I am using an excellent library for that (CsvMan) and at the moment all the csv files are in a directory within my web application: Web Pages -> Data Feeds -> lots of csv files
I can access and read these files no problem - I find them as resources.
These files are data feeds and as such, they are updated on a regular basis.
It has dawned on me though, that everytime I make changes to the project in Netbeans, then undeploy and deploy, I am (probably?) over-writing the data in these csv files. So if a feed file is updated (as it should be) today and then I make some code changes, undeploy and deploy tomorrow, then the csv feed file will be overwritten with an old version - at least I think so?
It seems not smart to have these feed files inside the web application. It seems smarter to have them somewhere within Apache and then access them from the web application. Is this correct? What is a simple strategy for organising this sort of system - a web application that uses external files (that are updated regularly) as external resources?
Hoping someone can help clarify things for me?