If you put the jar in $CATALINA_HOME/common/lib or $CATALINA_HOME/shared/lib, the class loader will take the class from there, so there will be only one shared instance for all your webapps.
Magne Skjeret wrote:
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]