tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Rosenberg" <rosenberg.l...@googlemail.com>
Subject Re: Servlet inter-communication
Date Wed, 03 May 2006 13:51:34 GMT
On 5/3/06, Antonio Petrelli <brenmcguire@tariffenet.it> wrote:
> Thomas Bolding ha scritto:
> > Indeed. If it is within the same context this is trivial - look into
> > singleton design pattern.
>
> It's a bad idea to use singletons in a web application, especially when
> the application needs to be reloaded (this is one of the causes that
> make lots of people write about an OutOfMemoryException!).

Heh?
Could you explain it a bit more? What's the difference whether I have
10 instances of the same class or just one for reloading?

> Antonio

Leon

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


Mime
View raw message