File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes unable to lookup an EJB from a JavaBean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "unable to lookup an EJB from a JavaBean" Watch "unable to lookup an EJB from a JavaBean" New topic
Author

unable to lookup an EJB from a JavaBean

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3334

Hi all.
I'm creating a J2EE application.
my web application contains a simple JavaBean that hides the operation of locating my Session EJB.

this JavaBean will be used by servlets, JSPs.
this is the important part of jboss.xml :
<session>
<ejb-name>LigaBean</ejb-bean>
<jndi-name>ejb/Liga</jndi>
</session>
when trying to use the application, I got the exception :
javax.naming.NameNotFoundException: ejb not bound
I changed <jndi-element> to Liga , I got the same exception
the application is only works if I do the following :
Object obj = ic.lookup("Liga");
any ideas ???
thanks.
 
 
subject: unable to lookup an EJB from a JavaBean
 
Threads others viewed
null pointer exception on jndi session bean call
Weblogic with Ejb, HFEJB
JNDI referencing to JBoss
XA Connection Factory, SOS
JNDI Lookup for a Local EJB in JBoss
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com