Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call by reference in EJB

 
Kalyan Anand
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the Local Interface I read that they have ability to share data between client and bean through call by reference.

What does mean as Java goes by Call by value mechanism ?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Santhosh Jali:

What does mean as Java goes by Call by value mechanism ?


This has a very good explanation about Call by reference and call by value.

Originally posted by Santhosh Jali:
For the Local Interface I read that they have ability to share data between client and bean through call by reference.

So as explained in the FAQ,


If the (local interface) method changes some of the attributes of the object, it changes the original object (passed by the client).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic