Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

Lookup method can't find the sesssion bean

 
Tom Kowalski
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Report post to moderator
// EDIT: I have found the answer (http://www.coderanch.com/t/415033/EJB-Other-Java-EE-Technologies/java/lookup-local-interfaces) the topic can be deleted. sorry.

Bean interface:


Bean class



This is bean, which I deploy with an EE Application. I want to get access to this bean in the servlet, when I am doing this by @EJB injection everything is working. But I can't get the bean through the lookup method



It throws exceptions all the time (javax.naming.NameNotFoundException). Could somebody tell me how to fix it? thanks...

(NetBeans + GlassFish)


 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Tomasz Stachlewski wrote:// EDIT: I have found the answer (http://www.coderanch.com/t/415033/EJB-Other-Java-EE-Technologies/java/lookup-local-interfaces) the topic can be deleted. sorry.


Let's just close this, instead of deleting.
 
    Bookmark Topic Watch Topic
  • New Topic