Hi Kevin,

I'm not sure if what I'm about to say answers your question or not, but 
hopefully you might find it useful.

In a current project that we're working on we need to mirror certain 
classes/data structures on both the server and client. There is no way to get 
around actually building this structure on both sides, so we did that. But then 
we extended JSON so that the server-side Java app could serialize and send any 
complex structure using the classes that we both understand. When the client 
receives this data it deserializes it automatically into the right structure. 
We made use of the dynamic class loader stuff. All we really did was add an 
extra property to every object, @ClassName, which is used during 
deserialization to create the appropriate class instance. Then using a 
predefined naming convention we slam the data into the class instances.

Good luck on this project.

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121

Reply via email to