jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <asm...@yahoo.com>
Subject Re: object references
Date Wed, 13 Dec 2006 19:23:58 GMT
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. . .  


--- Duke Tantiprasut <duketantiprasut@gmail.com>

> 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: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org

View raw message