Two Laptop Bag
The moose likes EJB and other Java EE Technologies and the fly likes Getting the Local Home 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 "Getting the Local Home" Watch "Getting the Local Home" New topic

Getting the Local Home

dennis zined
Ranch Hand

Joined: Mar 07, 2003
Posts: 330
Hi all. I'm a newbie with EJB and need help on getting the local ejb home object.

My EJB contains both a Remote and Local home interface. When I do a lookup from another EJB using the JNDI name, the Remote home object is always returned and it's giving me a ClassCastException because I'm expecting a Local home object. How do I get the Local interface? Here's my code:


SCJP 1.4<br />SCWCD 1.4
Georg Joo
Ranch Hand

Joined: Feb 24, 2004
Posts: 49

See my posting.


SCJP, SCWCD, SCBCD<br /> <br />Vienna, Austria
I agree. Here's the link:
subject: Getting the Local Home
It's not a secret anymore!