• 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

Bean class doesn't implement home and remote interfaces?

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm reading through jGuru's Enterprise JavaBeans Fundamentals. On page 7 of my print out, it states that EJB doesn't require, in fact it is encouraged that they not, implementing the home or remote interfaces. It says that the container will implement these.
What I don't understand is how the container knows to implement them? For instance, the CustomerHome interface in their example defines create(Integer customerNumber). How does the container know how to instantiate the CustomerBean with customerNumber? Does it do this through introspection of the CustomerBean class? I note that their example of CustomerBean doesn't implement a mutator for a customerNumber property.
How does it work?
 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Michael,
What are you after here is the 'missing link'; between bean class and container.
You define that link in the ejb deployment descriptor.
Eduard
 
reply
    Bookmark Topic Watch Topic
  • New Topic