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: chuck.caldar...@unisys.com > To: users@tomcat.apache.org > Date: Fri, 22 Apr 2011 12:12:23 -0500 > Subject: RE: shared library in tomcat container runtime` > > > From: Yongqin Xu [mailto:yong...@hotmail.com] > > 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: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >