thanks, Churck, 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! Does TC has other way around to fix this? WLS does not work that 
way.

> From: [email protected]
> To: [email protected]
> Date: Fri, 22 Apr 2011 12:12:23 -0500
> Subject: RE: shared library in tomcat container runtime`
> 
> > From: Yongqin Xu [mailto:[email protected]] 
> > Subject: shared library in tomcat container runtime`
> 
> > In runtime, will each app  get its own separate object 
> > instances from the same shared lib jars? Even for those
> > static members of the class, right?
> 
> No; everything in $CATALINA_HOME/lib is handled by a single classloader, so 
> all webapps will share the instances and classes.  If you want separate 
> instances and classes, keep the jars in each webapp's WEB-INF/lib directory.
>  
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> MATERIAL and is thus for use only by the intended recipient. If you received 
> this in error, please contact the sender and delete the e-mail and its 
> attachments from all computers.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
                                          

Reply via email to