On Mon, 21 Jun 1999, Alex Smith wrote:
> Watch out for Omniscient Garbage Collector when using a Singleton --
> see http://c2.com/cgi/wiki?JavaSingleton.
Interesting. Not sure I understand it all, but ...
> The URL above says that it'll be alright for a single classloader
> but I have to add that some servlet engines that provide a 'servlet
> reload upon modify' feature do so by discarding the existing
> classloader and replacing it with a new one (to get around the Java
> classloader semantics), which will render the last note in the
> WikiWikiWeb invalid.
... I believe that some/most servlet engines state that you should put
Singletons somewhere in the CLASSPATH, not in the servlets directory,
which means they'll be loaded using the system ClassLoader and not
subject to dynamic reloading (perhaps the above is why they say to do
this).
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html