• Post Reply Bookmark Topic Watch Topic
  • New Topic

USE of Local Bean  RSS feed

 
dew foster
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what the whole point of having local beans ? as in a client is doing a lookup on a remote bean n the remote bean is communicating with a local bean through a reference . why is it necessary ?
please reply asap .
 
paresh vernekar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Local interfaces are used to reduce the network turnaround time.Consider your scenario where a client interacts with a remote client.
Suppose that the remote client is a session bean which needs to interact with multiple enterprise beans in a single method invocation.
In absence of local interfaces, the communication between the session bean and the other beans would be through remote interfaces.This would increase the response time even in cases where the beans are colocated.
To avoid this local interfaces have been introduced in EJB 2.0.
Previous to this server providers would make there own optimazations, so that colocated beans would interact locally.In order to standardize this access local interfaces were introduced

Hope this answers your query
Regards,
Paresh Vernekar
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!