Hash: SHA1


On 4/12/2010 9:24 PM, Hassan Schroeder wrote:
> On Mon, Apr 12, 2010 at 6:08 PM, Sam Stephens <samspad...@gmail.com> wrote:
>> I have a forum application. When we update it we want to distribute a
>> new war file (previously we updated all files individually). If we
>> give out a new war file to our customers the images directory, the
>> attachments directory and other directories that contain user uploaded
>> data will be wiped out.
>> Is there a solution to this dilemma? Sym links are are no - you'd have
>> to remake them each time so still a lot of work.
> Well, AFAIK it's either symlinks (which can be scripted in deployment
> processes pretty easily) or put all that stuff in a separate context that
> you never, ever, EVER undeploy :-)

You can also put your deployment directory outside the webapps
directory. Those webapps aren't deleted when undeployed, right?

Also, you can put your external content in some other directory, and
write a simple servlet to serve that content based upon URL prefix.

Finally, you can subclass the DefaultServlet and change the way it finds
files so that it finds those files in a separate directory (instead of
within your deployment directory). This is essentially the same as my
second suggestion above except that you get all the benefits of using
the DefaultServlet.

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to