aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Call by reference in EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Call by reference in EJB" Watch "Call by reference in EJB" New topic
Author

Call by reference in EJB

Kalyan Anand
Ranch Hand

Joined: Feb 07, 2007
Posts: 194
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

Joined: Jul 20, 2005
Posts: 9343
    
111

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).


[My Blog] [JavaRanch Journal]
 
 
subject: Call by reference in EJB
 
Similar Threads
Call by reference WAS 5.0 Developer
call by reference
java parameter passing
java pass by copy, or pass by reference?
java is call by value or call by ref.