*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Getting the Local Home" Watch "Getting the Local Home" New topic
Author

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:



Thanks.


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

Joined: Feb 24, 2004
Posts: 49
Hi

See my posting.

http://www.coderanch.com/t/314362/EJB-JEE/java/Class-Cast-Exception

Georg


SCJP, SCWCD, SCBCD<br /> <br />Vienna, Austria
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting the Local Home