Dan, no need to be sorry, happy to help. Long story short, if you want to have control over a property (in any kind of java) you should provide a getter and setter (opinion). I think once you do that you will be able to use the annotations as laid out in the docs and mentioned below in your email. If that does not work then we can look at the aegis file.
Your aegis snippet below looks good but there are some other rules that you must follow for them be effective. 1. The names of the file MUST be <CLASSNAME>.aegis.xml 2. The file must be available to the classloaded in the same package as the class it refers to. In the logs from XFire it should report which classes it found mapping for and which ones it doesn't this is very useful for confirming that your mapping is at least being detected even if it is not working correctly yet Let us now how you get on. BTW if you are using Java6 and just starting you should REALLY CONSIDER CXF instead. It is a merge of Xfire and Celtix, and it should be considered to be Xfire 2, in other words XFire is finished, I will be moving to CXF when I am allowed use Java 5. http://cwiki.apache.org/CXF20DOC/index.html 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: Friday, November 02, 2007 5:35 AM To: user@xfire.codehaus.org Subject: RE: [xfire-user] Serialise recursive object structure Hello Gavin, i am very new to all this stuff, so i'm sorry, but i need more help. I use Java6, so think the ignoreProperty should work. My Problem is, that i think, it's only possiple to write the @IgnoreProperty over methods, but not over a property (give a compile error). But i have no getter-method etc. which is used for the properties i would like to ignore. Or am i wrong? In the second altenative with the aegis file, i don't know if i did it right. I did it like this: I have a domain class called SystemAccountACL, so i created in the domain class directory a file named SystemAccountACL.aegis.xml. In this i just placed the code which you wrote me: <mappings> <mapping> <property name="subject" ignore="true"/> </mapping> </mappings> Is this all what i have to write in this aegis file? And do i have to do some settings, that xfire knows to use this file? Thanks a lot for your help Daniel Hogan, Gavin wrote: > > 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: user@xfire.codehaus.org > 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 > > > -- View this message in context: http://www.nabble.com/Serialise-recursive-object-structure-tf4726631.htm l#a13544473 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