wood burning stoves*
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
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: 10102
    
165

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