tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <>
Subject Re: Servlet inter-communication
Date Wed, 03 May 2006 08:40:08 GMT
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!).
Samuli, I think that you should try portlets to achieve inter-portlet 
communication. Servlets are not designed to communicate each other!
Or maybe this is a false problem and you can solve your problems by 
better design your business logic.

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

View raw message