Hi Soumen:
The problem is that the Apache SOAP 2.2 serializer doesn't support writing
the SOAP "multi-ref" syntax, which allows object references in the
serialized graphs. This is necessary to support circular references as you
suggest.
Apache Axis (http://xml.apache.org/axis), the next version of Apache SOAP,
supports multi-ref serialization, and can serialize cyclic graphs and shared
objects. An alpha version of the toolkit should be available tomorrow
afternoon.
--Glen
> -----Original Message-----
> From: Soumen Sarkar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 4:03 PM
> To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> Subject: RE: Serializer for JAXB
>
>
> Does it take care of cycles in object graph to be serialized.
> Apache SOAP
> serializer
> does not. It runs out of stack. Please consider the following
> java object:
>
> class Employee
> {
> Employee[] subordinates;
> Employee manager;
> }
>
> It is easy to have cycles in such data structures(not a bad design or
> illegal thing to do).
> Will your serializer take care of flattening the object graph
> with cycles?
> JAVA RMI serialization takes care of serializing any
> arbitrary object graph
> to a linear serialized stream keeping all graph semantics intact.
>
> Regards,
> Soumen Sarkar.
>
> -----Original Message-----
> From: Glen Daniels [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 9:40 AM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: Serializer for JAXB
>
>
>
> I'd love to see it. Would you be willing to post it to the list?
>
> > -----Original Message-----
> > From: Radek Wisniewski [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 14, 2001 12:09 PM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Serializer for JAXB
> >
> >
> > I'v written one, works.
> > I have'n tested to much but i hope its good.
> >
> > Is anybody interested in?
> >
> >
> > Radek Wisniewski
> >
>