File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes GWT - Serialization mechanism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT - Serialization mechanism" Watch "GWT - Serialization mechanism" New topic

GWT - Serialization mechanism

Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80
I read an article on GWT serialization; GWT - Serialization strategy is not as sophisticated as Java
It says that the GWT serialization is not as sophisticated as that of Java. In java, as per my knowledge if I have a list of objects and if a particular object is repeated the object data is serialized only the first time , the next time if the same object is encountered only the reference of the object is passed.

My question is if the Gwt serialization is not sophisticated does that imply that the object data may be serialized many times. If such is the case I have to improvise on my performance using some other techniques while passing same objects to the server.

Thanks and Regards,

Thanks and Regards,
C Popp

Joined: Aug 08, 2007
Posts: 14
All RPC requests are handled as separate transactions. There isn't any built in caching of serialized objects. If you know a List is not going to frequently change or is static, you can persist that object on the client side after it's retrieved from the server. You can store it in the client session and if the List is called again, just add a method to check if the object is in the session first before making a RPC call back to the server.
I agree. Here's the link:
subject: GWT - Serialization mechanism
It's not a secret anymore!