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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 9315
    
109

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: value object serialization
 
Similar Threads
what is the use of Serialization in java?
How to maintain state in applets
writing hashtable to a file
Overriding the write/readObject methods when doing serialization.
Serialization