• 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

EJB2.0 Local Interfaces

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
Just read about the local interfaces in EJB2.0. According to the specs, these local interfaces help to improve the performance as there is no remote network calls.
While this is good, aren't that these local interfaces reduce location transparency ? Currently, some app servers vendors are already providing the feature for EJBs locating within the same container to have methods invocations rather than RMI calls. By using local interfaces, isn't that there is a possibility to change the program API when there is a need to separate the beans into separate containers in the future ?
What do you guys think ?
Also, does these local interfaces work when we have a clustered environment with multiple app servers ?
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Local interfaces have a very specific use. They are a key component in the move to allowing J2EE to be used for small-scale projects. I encounter projects all the time where scalability to multiple machines is not an issue, but performance on the existing machine is vital.
Local interfaces allow the great power and flexibility of CMP beans to realistically be used in single-machine configurations with sensible sized application servers.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic