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

Differrence in Passing ValueObjects

 
Nitin Bansal
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference in passing the Valueobject in EJB 1.1 and EJB 2.0?
 
Thomas Hofmann
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is only a difference if you use local interfaces according to EJB2.0. With local interfaces parameter (VO) are passed by reference. In the other case (remote interfaces) parameters are passed by value (they are copied) and serialized due to RMI.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic