Search for Singleton in the archives.

Do you mean the /manager/ webapp? It doesn't hold on to instances of anything. (AFAIK)

For singletons to work "correctly" - make sure the classese live under WEB-INF/[lib|classes]. Each webapp has hits own classloader. On a reload, the old classloader is dumped and a new one is made. But the archives have many converstations about Singletons sounds similar to your issue.


-Tim


Marcin wrote:
Hello,
I have a question about Tomcat Web Application Manager.
Suppose I have static member in a simple class
public class xxx {
public static yyy zzz = new yyy();
}
I load my web application and everything is fine. But
when I reload my whole application using Tomcat
Web Application Manager zzz contains the same instance
of yyy as before reloading. Is it a bug of TWAM?
Best regards
Martin Sielski


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



Reply via email to