Yes it makes perfect sense. Thanks for clarify some of the basic
concepts to me.

Regards,
Anshaj


On Thu, 3 Feb 2005 06:52:55 -0600, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
> > From: Anshaj Mathur [mailto:[EMAIL PROTECTED]
> > Subject: Re: Accessing static variable from different webapps
> >
> > Thanks for your reply. I think JVM rules said that there should be 1
> > reference per JVM for a static variable.
> 
> It's one reference per classloader, not JVM.
> 
> > Tomcat class loader creates separate instance of a static
> > variable for each webapps. I am just trying to understand
> > how class loader works in tomcat.
> 
> That's because there's a separate classloader for each webapp, along with a 
> few others.  Take a look at:
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html
> 
>  - 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]
> 
> 


-- 
v1.2a r TW 0/0/ FD + 0 DSotM 3 100 21.3% <3jan5>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to