wood burning stoves
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
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]
I agree. Here's the link: http://aspose.com/file-tools
subject: EJB lookup
It's not a secret anymore!