There are several things to keep in mind when using BlazeDS Remote Objects to access Java code:
1. Java data classes must have a default constructor and both set and get methods for each attribute.
2. If a Java service provides overloaded functions with the same number of arguments BlazeDS will call the first function (you may get class cast exceptions if you intend to call the second).
3. ActionScript classes must be created and aliases set for the entire class hierarchy that is referenced by parameters in the Java methods.
4. A bug exists preventing an ActionScript collection of Strings from properly deserializing into a Java collection of enums.
5. A bug exists preventing a Java map with keys that are not Strings from properly deserializing into ActionScript.
6. Be careful when using Java long because it deserializes into ActionScript Number which uses only 53 bits to store the integer portion of a floating point number.
7. Java exceptions are only included in the ActionScript FaultEvent if the Java method declares that it throws exceptions.
7.31.2008
Subscribe to:
Posts (Atom)