File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes value object serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "value object serialization" Watch "value object serialization" New topic
Author

value object serialization

vijay kumarg
Ranch Hand

Joined: Dec 14, 2006
Posts: 105
If we use a value object ,is it must that it should be serialized for robust design?
If I am not wrong , we use value object to pass data between different tiers of the application. What is the impact of serialization in this context?
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

In my opinion,

Is that Value Object contains one time values, then you can go for serialization.

If values changes frequently, then you should not.


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9924
    
158

If I am not wrong , we use value object to pass data between different tiers of the application. What is the impact of serialization in this context?


If the object is being passed across tiers, it might mean that the object will have to be passed across the wire. In such a case you will have to have the object as Serializable.


[My Blog] [JavaRanch Journal]
 
jQuery in Action, 2nd edition
 
subject: value object serialization
 
Similar Threads
what is the use of Serialization in java?
How to maintain state in applets
Overriding the write/readObject methods when doing serialization.
writing hashtable to a file
Serialization