wood burning stoves
The moose likes EJB and other Java EE Technologies and the fly likes Local client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Local client" Watch "Local client" New topic

Local client

Rajib Sarma
Ranch Hand

Joined: Apr 29, 2002
Posts: 34
Hi all,
In EJB, what is the meaning of a Local client and a Remote client and what is their difference? Please explain.

*** Rajib Prasad Sarma ***<br />==========================
Hari babu
Ranch Hand

Joined: Jun 25, 2001
Posts: 208
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.
faiza athar
Ranch Hand

Joined: Oct 30, 2001
Posts: 136
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!!!
I agree. Here's the link: http://aspose.com/file-tools
subject: Local client
jQuery in Action, 3rd edition