This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB lookup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB lookup" Watch "EJB lookup" New topic
Author

EJB lookup

Deepa Malhotra
Greenhorn

Joined: Oct 31, 2003
Posts: 19
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EJB lookup
 
Similar Threads
EJB - Remote or Local (JBoss)
JNDI Exception
Help regarding RemoteClient
Using Sockets to pass an RMI Reference
ejb 3.0,jboss 4.2.2 netbeans 6.0.1