: I'm new to tomcat and trying to figure out how to deploy a WAR file without deleting 
all the contents of the old application.
: [snip]
: The reason I want to do this is because my data and program files are all under the 
same hierarchy.  I want to replace my programs, but not my data.  I tried using a 
symbolic link for my data directory, but tomcat followed the symbolic link and deleted 
everything in there when expanding the new WAR file.

You'll benefit, in the long run, from an application redesign.  Java
webapps are meant to be somewhat self-contained bundles, which is why
you have the option of deploying in a neat WAR file.  (I may be
mistaken,  but I recall the spec says it's optional for a container to
support the exploded-dir format.)

Questions to consider:

- What if your app grows, and needs to be spread amongst 2+ clustered
  servers?  Where would the data go then?

- How do you migrate from dev -> testing -> production?

etc

Find another place outside of the webapp to put your data, such as
another directory (specified as a context param or in a properties
file).

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to