aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Lookup method can't find the sesssion bean 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
Reply locked New topic
Author

Lookup method can't find the sesssion bean

Tom Kowalski
Ranch Hand

Joined: Feb 17, 2009
Posts: 72
// 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)



SCJP, SCWCD, OCUP
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10266
    
168

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.


[My Blog] [JavaRanch Journal]
 
jQuery in Action, 2nd edition
 
subject: Lookup method can't find the sesssion bean