• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Home stub class

 
Sany Bel
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do we need a home stub class on the server? HF Book shows that on page 109?
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider a client which does an JNDI lookup on a bean, which returns a Home stub. And for that stub to be returned, the Home object has to be on the server.
The Home stub class would have been generated by the container at deployment time, although the Home stub object might be on a JNDI server at runtime.
[ April 02, 2004: Message edited by: Roger Chung-Wee ]
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After the client get Home stub from the server, it does not need to JNDI lookup to the server to get a reference to the EJBHome interface... As you see on that page of the HF EJB, the client need to get a reference to the home in order to get connection with the EJBObject to call mehtods on beans...
Hope it helps..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic