• Post Reply Bookmark Topic Watch Topic
  • New Topic

reference and value

 
Forrest Xu
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a question about reference and value.
When we call method in local EJB, the parameters in the object is passed by reference. That means that any change made by the EJB will affect the calling client.
When we call method in remote EJB, the parameters in the object is passed by value. That means that any change made by the EJB will not affect the calling client.
When I want to use remote ejb, how can I get result(This is updated information) form EJB method? It looks like I can not get from parameters. Is it from return value?

Thanks,
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
408
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forrest,
Yes, you use the return value to get data back. It is a good practice to do this for local ejbs too so you can switch the configuration.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!