Title: RE: Contexts, Classes, Variables

My understanding is that if your class is in your classpath, it will be loaded once by java's bootstrap loader and they would share the same instance. If your class is part of your web application, it would be a different instance for each context.

The following thread is a good explaination of the classloader :
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg13260.html

Charlie

-----Original Message-----
From: Zach Hollandsworth [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 10:49 AM
To: [EMAIL PROTECTED]
Subject: Contexts, Classes, Variables


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

Reply via email to