posted 18 years ago
Aaron,
The object which are referenced by the serializing object are also serialized PROVIDED they are serializable ie they implement java.io.Serializable, if they dont implement this interface then you will get a NonSerializableException whenever you try to serialize the object. So to successfully serialize an object which has a reference to a non serializable object you need to make the refrence of non seriazlible object as null before Serializing OR make the reference as transient .
HTH
Thanks
Venkat.
[ June 12, 2007: Message edited by: Venkatesh Rangamani ]