tomcat-users mailing list archives

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

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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message