Without annotations (No Java 5?) create an aegis file and set the
recursive properties to ignore.


SNIP

<mappings>
  <mapping>
    <property name="propertyName" ignore="true"/>
  </mapping>
</mappings>

LINK

http://xfire.codehaus.org/Aegis+Binding


Need more help?  Just ask.

Gavin
___________________________________________

Gavin Hogan
Programmer/Analyst
The State University of New York
State University Plaza
Albany, NY 12246
Phone 518-443-5481
fax 518-443-5809
e-mail [EMAIL PROTECTED] 

-----Original Message-----
From: Daniel S. [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 31, 2007 1:28 PM
To: [email protected]
Subject: [xfire-user] Serialise recursive object structure



Hello all,

i have two classes which have both an instance from the other, so i get
a
stackOverflowexception, when i try to serialise it.
I read in the forum about the @ignoreProperty, but i don't no exactly
how to
use it, because i don't have a getter-method for this property (if i add
one, it changes nothing)

Can someone explain me exactly, how to ignore a property.

Here is my case again:

ClassA
{
...
ClassB b;
}

classB
{
...
ClassA a
}

And i have a webmethod which returnes a, like

public ClassA get...()
{
   return a;
}

Thanks for your help
Daniel


-- 
View this message in context:
http://www.nabble.com/Serialise-recursive-object-structure-tf4726631.htm
l#a13514513
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to