Take the scenario where multiple web applications are running under the same
JVM. Each of these web applications will have their own class loader and
servlet contexts.

Can they share/use the same utility jar file?
what if the jar file has statics?

For example:

class A
{
        public static String name="global";
}

Do statics exist for the entire JVM? or one for each class loader?  If they
are for the whole JVM what happens if two web apps try to access the same
static variable?

Thanks
Satya?

Reply via email to