CLASSLOADERS! FW: Contexts, Classes, Variables

2001-05-25 Thread Ronald G. Louzon
Title: RE: Contexts, Classes, Variables



This 
URL contains a good discussion concerning the classloaders.

-Original Message-From: Cox, Charlie 
[mailto:[EMAIL PROTECTED]]Sent: Monday, May 21, 2001 7:53 
AMTo: '[EMAIL PROTECTED]'Subject: 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 


RE: Contexts, Classes, Variables

2001-05-21 Thread Cox, Charlie
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





Contexts, Classes, Variables

2001-05-18 Thread Zach Hollandsworth

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