File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Local client

 
Rajib Sarma
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Hari babu
Ranch Hand
Posts: 208
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
faiza athar
Ranch Hand
Posts: 136
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic