tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Common war file and multiple tomcat instances
Date Mon, 18 Oct 2010 12:57:29 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Shivanic,

On 10/18/2010 5:38 AM, shivanic wrote:
> I have read through the link suggesting not to go for using one physical
> location of war for multiple instance of tomcat.
> 
> http://www.mail-archive.com/users@tomcat.apache.org/msg73906.html

Note that this was a warning of using a /network/ share to share WAR
files. Using a single WAR file with multiple deployments should not be a
problem, as long as you do things properly. Specifically, use a file in
CATALINA_BASE/conf/[servicename]/[hostname]/[appname].xml that contains
a docBase pointing to your WAR file, and does /not/ have a "path"
attribute set. Then, make sure your WAR file is outside of the Tomcat
installation directory: otherwise, you risk additional, unintended
deployments.

> My question is : If we have a simple jsp's that use taglib and db - what
> could be the possible issues if we use one common location for multiple
> tomcat servers?

The content of the WAR file is largely irrelevant: it's the location of
the WAR file that counts. As long as you use local storage, you should
be fine.

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

iEYEARECAAYFAky8RDkACgkQ9CaO5/Lv0PD47gCePnOANzl1JD15EZyqcIDjsXCN
EZMAnjIa1mB2E+5IhBoXOpEeuGtgMFNc
=Ib2/
-----END PGP SIGNATURE-----

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


Mime
View raw message