1) In Tomcat 3.2.1 do separate contexts see static variables of a class the
same? Or do they have separate ones?
2) different versions of the same class in two contexts on the same tomcat?
(placed in the /WEB-INF/classes directory of that context)
Zach Hollandsworth
what if you have a JAR that is specific to a context?
-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 8:10 AM
To: [EMAIL PROTECTED]
Subject: RE: support classes in jar
They go in WEB-INF/lib
> -Original Message-
> From: Montg
I have asked this question a couple of times in here with no replies. I
have two separate contexts with the same class. The class has a static
variable and I would like to have different static variables across
contexts. the source to an example class is as follows:
public class StaticTest ext
"It is not running under its own JVM, but each webapp *does* run under its
own classloader. Static variables are global only within the scope of a
particular classloader, so each webapp that uses your class gets its own if
the class was loaded from WEB-INF/classes or WEB-INF/lib. "
-Craig McClanah
directory, or from the CLASSPATH, it is global to all web apps.
Craig
On Thu, 23 Aug 2001, Zach Hollandsworth wrote:
> Date: Thu, 23 Aug 2001 16:27:14 -0500
> From: Zach Hollandsworth <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
>
o:craigmcc@localhost]On Behalf Of Craig
R. McClanahan
Sent: Thursday, August 23, 2001 8:18 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: static variables in multiple contexts PLEASE HELP
On Thu, 23 Aug 2001, Zach Hollandsworth wrote:
> Date: Thu, 23 Aug 2001 18:37:11 -0500
> From: Za