RemoteObject in BlazeDS: Serializing Objects from Classes Created by JAXB / XJC

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?

+3
source share
2 answers

I finally developed the JAXB / XJC plugin. (If anyone is interested, just contact me.) It works just fine now.

0
source

Several variants:

  • create a collection of objects on top of your JAXB-created classes. I would choose this option.
  • - JAXB-, / . Externalizable, Dynamic Proxy API Java, .
  • blazeds. , .
0

All Articles