JCS will keep a reference to A. If A has a reference to B, then B will not get garbage collected. Just like any other reference to A. It's just like putting A in a map. . . . If B is not declared transient, then if A is serialized, B will be serialized too. That's the same if you tried to serialize a map that had A. . .
Aaron --- Duke Tantiprasut <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm looking to use JCS and have a couple of newbie > question about object > references. I have objects (A) that references other > objects (B). If I put A > into the cache, do I still manually have to put B > into the cache as well or > does JCS automatically store B? Conversely, if I get > A from the cache, do I > need to manually get B from the cache and > reconstruct A with the reference > to B? > > Thanks > Duke > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]