Re: shared jars amongst web apps.
Well, shared/lib is better than common/lib (since it doesn't affect the Tomcat classes). A declared servlet (via servlet in web.xml) will create a new instance of the class for each context that it is used (actually, for each servlet declaration that it is used). This actually holds true for the (deprecated) Invoker mapping as well. Frank Diakovasilis [EMAIL PROTECTED] wrote in message news:810830D03816D411A480006008A979102F43CD;SPIKE... Does anybody know of a location where I can put a jar file that is shared among the web apps of a tomcat instance, but not thought out all instances. i.e. putting a jar in common/ would share that file throughout all instances of tomcat, which I do not want. Short of explicitly including the location in class path, is there a way to do this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: shared jars amongst web apps.
sounds like you want each webapp to have its own instance of statics,singletons,etc within your jar. In order to do this, you will need to copy the jar into each WEB-INF/lib where it is needed (and allow each with catalina.policy if applicable) Charlie -Original Message- From: Frank Diakovasilis [mailto:fdiak;lexel.com] Sent: Monday, October 28, 2002 11:23 AM To: Tomcat Users List Subject: shared jars amongst web apps. Does anybody know of a location where I can put a jar file that is shared among the web apps of a tomcat instance, but not thought out all instances. i.e. putting a jar in common/ would share that file throughout all instances of tomcat, which I do not want. Short of explicitly including the location in class path, is there a way to do this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
shared jars amongst web apps.
Does anybody know of a location where I can put a jar file that is shared among the web apps of a tomcat instance, but not thought out all instances. i.e. putting a jar in common/ would share that file throughout all instances of tomcat, which I do not want. Short of explicitly including the location in class path, is there a way to do this? Thanks