• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting the Local Home

 
dennis zined
Ranch Hand
Posts: 330
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Georg Joo
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

See my posting.

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

Georg
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic