tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Magne Skjeret <magne.skje...@broadpark.no>
Subject static variables and context
Date Fri, 07 Nov 2003 09:26:23 GMT
Hi

I just need someone to confirm my belives.

I have a jar file added to my WEB-INF/lib
I create a singleton of one of my classes.

In another context I have the same jar file, so it is duplicated. And I 
create a singleton of the same class there.

I thought that each context had its own classloader so that a singleton 
was private for each context. But now I have doubts.

Can anyone shed some light on this.

Magne


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message