Frank Kim wrote:
>
> > on 3/24/00 4:27 PM, Kevin A. Burton <[EMAIL PROTECTED]> wrote:
> >
> > > Basically singletons don't work.
> >
> > You have got to be kidding me. Singletons are fundamental to the JVM! This
> > means that even simple JDK stuff like Calendar.getInstance() doesn't even
> > work properly!
> >
> > -jon
>
> I've got a hard time believing this as well. In very early 1.1 VMs
> singleton unloading was a problem but has since been solved. This *might*
> be a problem with VMs on Linux. Have you tested on non-Linux VMs?
>
> There was a JDC Tech Tips re: how to get around this for early VMs (I'll see
> if I can find it). But basically the solution, like you mentioned, was to
> keep a reference to the singleton in a main() somewhere.
<snip>
It might be possible to place the instance in the ServletContext. This
should never be GC'd. I will hack on this and see about a patch soon.
I don't have access to other VMs besides Linux. The SUN JDK 1.2 on
Linux works fine though.
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]