> 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]
