This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB lookup" Watch "EJB lookup" New topic

EJB lookup

Deepa Malhotra

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

Joined: Jan 23, 2002
Posts: 11962
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]
jQuery in Action, 2nd edition
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