Serialization

6 views
Skip to first unread message

Davide

unread,
Dec 6, 2010, 4:51:50 PM12/6/10
to java2...@googlegroups.com

Like gwt is possible to have java and javascript version of an object and serialize a java object graph over the network and deserialize it with javascript object?

Zhou Renjian

unread,
Dec 6, 2010, 8:15:05 PM12/6/10
to java2...@googlegroups.com
Hi,

You can extend an object to net.sf.j2s.ajax.SimpleSerializable, you will have method #serialize and #deserialize . If you want to make RPC call, you can use net.sf.j2s.ajax.SimpleRPCRunnable. For tutorial, please read http://inside.java2script.com/2007/06/02/tutorial-of-java2script-swt-and-simple-rpc-application.html

Regards,
Zhou Renjian

--
http://webuzz.im/ web instant messengers (Gtalk/MSN/Yahoo!/Facebook/AIM/ICQ/Jabber)
http://j2s.sourceforge.net/ Java2Script


On Tue, Dec 7, 2010 at 5:51 AM, Davide <d...@vide.bz> wrote:

Like gwt is possible to have java and javascript version of an object and serialize a java object graph over the network and deserialize it with javascript object?

--
You received this message because you are subscribed to the Google Groups "Java2Script" group.
To post to this group, send email to java2...@googlegroups.com.
To unsubscribe from this group, send email to java2script...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/java2script?hl=en.

Reply all
Reply to author
Forward
0 new messages