• 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

USE of Local Bean

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic