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

  | Object obj = ic.lookup("java:comp/env/ejb/Liga");
  | LigaHome home = (LigaHome)PortableRemoteObject.narrow(obj, LigaHome.class);
  | 
this JavaBean will be used by servlets, JSPs.
this is the important part of jboss.xml :

        <ejb-name>LigaBean</ejb-bean>
        <jndi-name>ejb/Liga

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.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859868#3859868

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859868


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to