• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why VO/DTO are Serializable during Remote

 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

Why VO objects are Serialized (implements java.io.Serializable) in an EJB application apart from the fact that they are used to passing values in a remote environment or to facilitate network communication with remote business objects.?

Rgds,

Seetesh
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Seetesh Hindlekar:
Hello all,

Why VO objects are Serialized (implements java.io.Serializable) in an EJB application apart from the fact that they are used to passing values in a remote environment or to facilitate network communication with remote business objects.?

Rgds,

Seetesh



Do you need another reason?
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Paul if its apart from the ones mentioned in my earlier post
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. Well, there are no other reasons.
 
ShivShankar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Seetesh,
Its required that objects should be serializable to travel over the network.

Shivu
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Shiv,

Does the same Serializable concept apply when a VO is used in a Local environment ie while designing a Local bean?

Rgds,

Seetesh
 
Annie Smith
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Seetesh Hindlekar:

Does the same Serializable concept apply when a VO is used in a Local environment ie while designing a Local bean?


NO. It wouldn't make any difference if they were Serializable, for a local environment.
[ March 23, 2005: Message edited by: Annie Smith ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic