Re: Re: MM BlackBoard example with OpenAMF
"Leif Wells" <[email protected]> Wed, 22 Mar 2006 17:33:20 -0500
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
Darryl, Where did you find this BlackBoard application? Leif On 3/22/06, Darryl L. Miles <[email protected]> wrote: > > > Ah ha! 5 months after my post I managed to find time to get it > working. With a little debugging on AMFSerializer. > > The Macromedia BlackBoard example includes custom-class, these classes > are regular POJOs and define their fields as "public int value;" they do > not define standard getter and setters for their fields. The > AMFSerializer class in OpenAMF was getting an empty propertyDescriptor > list from PropertyUtils. So all I did to make it work was create a > complete set of getters and setters for all custom-class'es. > > Since the original Macromedia AMF engine must be able to handle this > situation natively, would there be any merit in making OpenAMF see all > public fields (as well as getters and setters) to allow ease of porting > such applications. > > AMFSerializer#writeObject(Object object) the call to > PropertyUtils.getPropertyDescriptors(object) needs to be able to see > public fields too and recurse into those at that point. > > Hope this info helps someone else! > > Darryl > > -- > Darryl L. Miles > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Openamf-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openamf-user >