Re: RMI client/server network traffic
Wednesday, May 14, 2003 08:45 AM
It does not surprise me that you get more than you expect.
The answer to your question, I think, in 2 words:
Returing Product, to the caller, means Serializing the entire
Object Graph of the Product class.
Imagine a tree, where the root is the Product and ALL the
objects that it references as its' member variables, and
all the object that those member variables refer to, and so
When desiging return values, you have to think very carefuly
what it is, you want to return; otherwise, sooner or later,
and depending on the numbers, you could bring your
network down to its knees.
I hope this helps.