08-24-04 01:23 PM
If you have organized your static content to he under a directory tree (
for example: /static ) at the root of .war, and if all static content is
contained in a seperate dir tree, then you can move the static content out
of WebApp and defined WebServer Virtual Directories so that your static
content is served up by the webserver.
For example:
if /static is the folder at the root of WAR archive.
if /myApp is your context root.
then:
define a virtual directory /myApp/static in your webserver and point it to
your $WAS_HOME/installedApps/{node|cell}/EnterpriseApp.ear/myApp.war/st
atic
For this to effectively work, you have to make sure that fileserving is
disabled in your WAR (you may have to play with this a bit, in the first few
attempts).
With this scheme, you dont have to worry about your static content no matter
how you deploy/redeploy your App, as long as you dont change the context
root !
HTH
Dexthor.
"Paul Allen" <pea1@cornell.edu> wrote in message
news:cgdbir$77s6$1@news.boulder.ibm.com...
> I have a TON of static content in a web app (BOB) whose main job is to
> provide access control to that content. When I redeploy (i.e. update) the
> web-app, all the files in the "bob.WAR" directory are deleted and I have
to
> populate the static content again by copying it to the bob.WAR directory.
> Anybody know of a way to prevent WebSphere from cleaning the .WAR
> directories when updating? When I say TONs I mean like 100K HTML files so
it
> takes a while to copy and I don't even want to think about actually adding
> the content to the WAR.
>
> Any thoughts appreciated. I'm using WebSphere v5.1.
>
>
[ Post a follow-up to this message ]
|