• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Local client

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
In EJB, what is the meaning of a Local client and a Remote client and what is their difference? Please explain.
Thanks
-Rajib
 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
The concept of the local client came in to picture in EJB 2.0. Suppose you have deployed 2 beans, Bean "A" and Bean "B". Suppose Bean "A" makes a call to Bean "B", since this is a remote call, to avoid this overhead local interface was introduced in EJB 2.0, where the above call will be a local call instead of remote call.Anyother call other than this will be a remote call. Hence the local client and the remote client.
Hari
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Remote Client
1)Used for coarse-grained components, where there's not much interaction b/w client and bean
2)Bean and the client can be in same/different JVM/machines
3)arguments passed by value
4)use of PortableRemoteObject.narrow() since remote access is involved.
Local Client
1)Fine-grained component access.
2)co-location of bean and client in same JVM
3)arguments passed by reference
Please add on to the list!!!
thanx
reply
    Bookmark Topic Watch Topic
  • New Topic