-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pid,

On 6/16/2009 5:09 AM, Pid wrote:
> You understand the point I'm trying to make?
> You've started out by saying that you want the war to expand.
> 
> 1. new war is uploaded.
> 2. server1 is restarted
>    2a expanded dir is removed
>    2b war is expanded
> 
> 2. server2 is restarted...
> 3. etc
> 
> 
> If servers other than server1 need to access the expanded war in between
> 2a and 2b then there will be a problem, as the app isn't there any more.

This would only be a problem if Tomcat's "work" directory was shared,
right? Or do I have things wrong thinking that WAR files are expanded
into the work directory rather than the webapps dir? I use expanded WAR
files so I don't know the procedure (though expanding into the webapps
directory doesn't make much sense IMO).

> Alternatively write a deployment script, (using Ant, perhaps), that
> uploads the war and restarts each server separately.

+1

This is a good idea for uninterrupted service, too: you always have one
or more servers that are still serving requests, instead of all of them
restarting (practically) at once.

> (Also the context.xml file shouldn't usually contain the path or docBase
> attributes, especially if it's in the expected place
> app.war/META-INF/context.xml)

A context.xml file should never contain a 'path' attribute, and should
only contain a docBase when it's placed in
CATALINA_BASE/conf/Catalina/[engine]/whatever.xml.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAko3n+kACgkQ9CaO5/Lv0PABWgCcDdX5QXpb55iR1aEvXfNEZ5cn
BQgAniqgQwBlEgyDvDNjfo4Br6D8GHrh
=JATR
-----END PGP SIGNATURE-----

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

Reply via email to