On Wed, 9 Jan 2002, Ming Zhou wrote:

> Date: Wed, 9 Jan 2002 14:09:08 -0600
> From: Ming Zhou <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'Tomcat Users List' (E-mail)" <[EMAIL PROTECTED]>
> Subject: Shared jars of multiple web apps
>
> I have two web apps that share a set of jars. Since these jars may be
> conflict with some other web apps on the same server, I prefer not to
> install them in the $CATALINA_HOME/lib directory.
>
> I know one option is to let each of the two web apps to have its own copy of
> all these jars in its WEB-INF/lib.
>

By far the best option, IMHO.  Not only is the cost of disk space trivial,
this lets each of your apps switch to a newer version of the shared JAR
later, on its own schedule, without having to do them all at once.

> What I want to find out is if there is any other option to keep only one
> copy of the shared jars?
>

You'd have to modify Tomcat to have another kind of shared classloader
that was assigned only to specific apps in order to do this.

> Thanks.
>
> -ming,
>

Craig


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to