Hi

I had a peculiar experience today, which really conflicts with my previous knowledge.

I have 2 applications that use the same base classes (just UI differences).
I have duplicated those jar files into each of the contexts WEB-INF/lib.

I try to start a singleton in each of the contexts: e.g WebProperties.getInstance()
But it only seem to do it once, so the singleton is shared cross context.


I always thought that a static variable was only visible in its classloader and its children.
Surely each context must have its own classloader??


Is this the expected behaviour?

It is a tomcat that runs inside jboss. tomcat 4.1.29

Could it be a jboss issue? I think I saw something in a config file about using a jboss classloader.

Thanks
Magne


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



Reply via email to