I haven't looked at Dieter's example code but he seemed to conclude that
singletons weren't getting unloaded in his tests on Linux.  Not true?

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin A. Burton
> Sent: Saturday, March 25, 2000 1:44 PM
> To: Turbine
> Subject: Re: JDK 1.1 Garbage Collects all singletons.
>
>
> Dieter Wimberger wrote:
> <snip>
>
> Just an update.  I wrote a SingletonHolder within Jetspeed that sets
> itself as the System properties.  It does't do anything to the
> references that already exist but anytime you add a new Object to the
> hashtable it puts it in its own internal Hashtable.  This was needed to
> get past a bug in Properties (ClassCastException when it isn't a
> String).
>
> It works fine now.  You just do a SingletonHolder.put() within your
> Singleton and it never gets Garbage Collected...  :)
>
> Kevin
>
> --
> Kevin A Burton ([EMAIL PROTECTED])
> http://relativity.yi.org
> Message to SUN:  "Please Open Source Java!"
> "For evil to win is for good men to do nothing."
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to