On Fri, Jan 16, 2009 at 6:22 PM, Scott Ferguson <[email protected]> wrote: >> When I serialize an instance of A, I can see serialization of all >> instance of Bs but the "owner" part keeps getting serliazed by >> Hessian. >> >> For some other object, I can see that hessian links to an existing >> instance that was serialized already. How hessian computes this? > > I assume this is the Java implementation, not the flash one? And does > that exact example reproduce the problem?
Yes, the Java implementation and yes this example shows the problem sometimes but not always, hence my question. > > Each object, list or map should be stored in an IdentityHashMap when > its header is serialized (before the fields). Do I have to do anything regarding this? > Any following > serialization looks up the object in the IdentityHashMap to see if it > can be convered to a reference. > > Because of the three stage requirement, it's possible that a specific > serializer isn't setting its reference. In other words, the type of A > might matter if it's not a straight Java object. > > 1. check for old reference > 2. add reference/send header > 3. serialize fields > It's a POJO (an hibernate entity that was converted to a DTO actually). Can you elaborate a bit more what you're saying here. Not sure I get it. Thanks, Stéphane > -- Scott > >> >> Thanks, >> Stéphane >> >> -- >> Large Systems Suck: This rule is 100% transitive. If you build one, >> you suck" -- S.Yegge >> >> >> _______________________________________________ >> hessian-interest mailing list >> [email protected] >> http://maillist.caucho.com/mailman/listinfo/hessian-interest > > > > _______________________________________________ > hessian-interest mailing list > [email protected] > http://maillist.caucho.com/mailman/listinfo/hessian-interest > -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck" -- S.Yegge _______________________________________________ hessian-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/hessian-interest
