• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to interpret LocalHome interface

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here is my understanding, correct me if I' wrong.

LocalHome interface is Invoked by EJB container to create localhome stub (who use this and why required??) and local stub with type LocalObject (contains business logic) to be used by the client such as jsp, servlet, etc.

thanks all
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am not an expert in j2ee, I have just started learning it but i would like to tell you what i learnt till this time

the home interface, be it local or remote is used to invoke methods on the EJB without creating it and it also contains the DB acces methods, EJB creation methods and home methods that are common to all instances of EJB hence home methods can't access instance fields of EJB

on the other hand local and remote interfaces are used to invoke bussiness methods specific to an instance of EJB this can only be done after creating an EJB instance using ejbCreate...() in home method

and for local and remote interfaces; the clients in same jvm may use local interfaces to improve performance but just remote interfaces will also do the job with performance penalty.
 
reply
    Bookmark Topic Watch Topic
  • New Topic