• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB and Home Interface

 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good Day,

The guide "Sun Certified Enterprise Architect for J2EE, Study Guide" by Paul Allen and Joseph Bambara says the following on page #431:

1) The client locates the bean's home reference using the JNDI services provided by the application server.

2) The JNDI service returns a home interface reference to the client.

My question is:

Who is responsible to define and instantiate the home interface so the client has a concrete class to refer to? This class is also referred to a the stub. Is it just a pointer to the tie � the class which the application server defines?

Thanks,
Dan
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You define the home interface in the deployment descriptor. When you deploy the EJB, the application server creates the implementation. Check out the EJB specifications published by Sun.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic