Thanks for this one!
I'm starting to think that this would actually be the most correct method to implement! Use the EJB only as the raw bytecode supplier, defining classes on the client (as they are not relevant inside the EJB layer) , possibly caching them locally to enable reuse...
I'll try to put together a prototype over the weekend!
Thanks for the pointers!
Jure