No, circular references aren't supported. You should flatten you data structure.
On 1/25/07, Egor Samarkhanov <[EMAIL PROTECTED]> wrote:
Hi !
Is XFire able to handle circular references?
I've created the following class:
public class Person
{
private String name;
private Person likes;
public String getName() {
return name;
}
public void setName( String name ) {
this.name = name;
}
public Person getLikes() {
return likes;
}
public void setLikes( Person likes ) {
this.likes = likes;
}
}
and my service's method is like this:
public Person testCircRef()
{
Person bob = new Person();
bob.setName( "bob" );
bob.setLikes( bob );
return bob;
}
It seems XFire throws the java.lang.StackOverflowError when this method is
invoked.
Is it possible to let XFire know about circular references and make it process
them?
Thanks in advance.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email