> 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]

Reply via email to