aspose file tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Differrence in Passing ValueObjects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Differrence in Passing ValueObjects" Watch "Differrence in Passing ValueObjects" New topic

Differrence in Passing ValueObjects

Nitin Bansal

Joined: May 22, 2002
Posts: 8
What is the difference in passing the Valueobject in EJB 1.1 and EJB 2.0?

SCEA 1/3
Thomas Hofmann
Ranch Hand

Joined: Nov 23, 2002
Posts: 72
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Differrence in Passing ValueObjects