my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Local client" Watch "Local client" New topic
Author

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.
Thanks
-Rajib


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

Joined: Jun 25, 2001
Posts: 208
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

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!!!
thanx
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Local client
 
Similar Threads
Transparency EJB2.0
EJB local client VS EJB remote client
Propagation of EJBException
Java:comp/env/ejb
Local Client