This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between value object,tranfer object

 
rajareddy annavaarm
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any body expain for what purpose we are using value object,tranfer object ?in which tier we will use these patterns.what is the difference between them
 
raj malhotra
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI we use term value object when we talk in core java .but we use term transfer object when we talk about j2EE.both have same purpose to carry data.
 
rajareddy annavaarm
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i understand a litlle bit.can you elaborate it please
 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For example, if you want to get the data from the remote objects and if you make frquent calls for getting data from the remote object, it will result in network traffic and performance hit. To avoid this, usually we will make a single call to remote object to get all the data. Now you can get the data from your object (transferred data from remote object to your local object). But the data will be stale at your object.Once again it is design issue you have to deal with, how frequent your data will be changing at the remote.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic