1 Reply Latest reply on Apr 29, 2006 8:38 AM by Thomas Diesler

    Serialize an object graph

    Pablo Gomez Newbie


      I'm testing serialization mechanism (JAX-RPC as far as I know) in JBoss 4.0.4 CR2 used when a web service is invoked (a class annotated with @WebService and @WebMethod).

      I'd like to know if it is possible to set up JBossWS so a web method can return a graph of objects, i.e., an object tree with possible cycles between them.

      For example, the web method M returns an object from class A, the object from class A has a reference to an object from class B, and B references A.

      I have tried it with a sample test but got a stack trace in server log.

      Thanks in advance