tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Rosenberg" <>
Subject Re: Servlet inter-communication
Date Wed, 03 May 2006 13:51:34 GMT
On 5/3/06, Antonio Petrelli <> 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!).

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


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

View raw message