Flash to Java Complex Object Conversion Problem
"Hogue, Brian" <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, We are developing an application using Flash, OpenAMF and a J2EE application server. We are experiencing a few pain points with OpenAMF and need some direction. We are able to make remote calls through the gateway to Java and return a composite Java bean to Flash. We are able to consume the composite object with the Flash Client. Our problem occurs when we try to push the complex object back (for an update). When sending a complex (or composite) object back to Java, any nested objects loose their type and become ActionScript Objects. Is there a way to prevent this and retain their type? We have reviewed several posting to this list and have seen a few posts that are somewhat related but nothing directly referencing our issue. For example, we have a JavaBean (x) that includes a Set of other JavaBeans (y). When Java receives the JavaBean (x) from Flash (to update the data), the Set does not contain JavaBeans (y), instead it contains HashMap objects. We want to know how to prevent these nested objects (y) from loosing their original type. Also, at times fields in (x) that are of type Double are returned from Flash (which has them declared as Number) as being String objects, this might be related to (or caused by) the same (perceived) conversion problem. Thanks, Brian ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click