tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: shared library in tomcat container runtime`
Date Fri, 22 Apr 2011 18:18:11 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yongqin,

On 4/22/2011 1:33 PM, Yongqin Xu wrote:
> that means, for our own shared lib jars, we have to duplicate them
> for each deployed apps, even if sometimes the shared lib jars could
> be over 100MB. That would really cumbersome!

100MB of libraries is not going to over-fill your disk, not will it
overfill the disk on your revision control server.

What /will be/ cumbersome is trying to remember which libraries you need
to install into your application server's shared library directory
before you can get your webapp to successfully run.

Sun went through great pains to make sure that webapps could be
self-contained, all wrapped safe and warm in their WAR files which
contained everything they needed other than container-guaranteed
services. Why not follow the standard and package your dependent
libraries with your webapp?

> Does TC has other way around to fix this? WLS does not work that
> way.

You can use a "shared" class loader if you want to. Read
catalina.properties to see how you can do that. I wouldn't recomment
using it, though: you really limit the flexibility of your webapps when
you start doing things like this.

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

iEYEARECAAYFAk2xxmMACgkQ9CaO5/Lv0PBkAQCgmWS5eXOLX03b+7D8JPwoJF51
fRoAmwXeu21xt8GPgQKmsA+yC+VPP9rd
=tNYm
-----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