I am developing a webapp with a Java backend and a Flash interface (pure ActionScript) using BlazeDS.
I use a RemoteObject to send objects using custom serialization, where I need to implement Externalizable (Java) and IExternalizable (AS). While this is working.
But now I need to send objects from Java to Flash, whose classes are generated using JAXB / XJC . Of course, these generated Java classes do not implement the Externalizable interface, so it seems that I cannot use my approach here.
One possibility seems to be to write an XJC plugin that forces classes to implement Externalizable. But it looks like hard work ...
Does anyone have a good idea how to solve this problem?
source
share