But, if I am thinking smarter now, using such a store would prevent my Message objects from ever being garbage collected. It would defeat its own purpose. So, is there some way I can keep, or reconstruct, references to Objects without preventing the garbage collection of those objects?
Have you looked at the WeakReference and/or WeakHashMap classes? Offhand it sounds like they might help you solve this problem, although I'm not familiar enough with either (or your problem domain) to say for sure...
TTYL,
Phil
--
When the 1st Amendment no longer protects your voice.
And when the 4th Amendment no longer protects your privacy or your stuff.
Thank God we have the 2nd Amendment to tell our elected representatives that enough is enough.
It's time to put "... from my cold, dead hands" back where it belongs.
FREE AMERICA Vote Libertarian www.lp.org
_______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org
