Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB lookup

 
Deepa Malhotra
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We typically lookup the home interface and then get the remote interface from it. Why not directly lookup the remote interface as this is also a Remote Object?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because the bean instances are not bound to JNDI... Yes, the home and remote interfaces could've been made into one interface, but that would be ugly (mixing lifecycle management with business methods).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic