• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

reference and value

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
author & internet detective
Posts: 41125
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic