On Tue, 20 Apr 2004 13:34:08 -0300, Ricardo de Souza Moura
<ricsouzamoura@(protected):
>I am thinking that you aren't understand me!!!!
>
>Imagine the situation:
>All started, ServletContainer on one machine and ApplicationServer on
>another machine.
>In this moment your Singleton is in memory.
>Now the ApplicationServer needed restart but the ServletContainer didn't
>need.
>
>On this situation your Singleton won't work until your ServletContainer
>restart, will it ? Because the home instance at the Singleton will be
>"dirty"
>
>
You may want to consider using the JSlim ServiceLocator implementation as
it clears the cache after the first occurance of a resource failure.
(Admittedly, you still have a single failure.)
http://sourceforge.net/projects/jslim/
====================================================================
Companion Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)