1 Reply Latest reply on Nov 21, 2008 7:35 AM by itsme

    NameNotFoundException

    thiagomontovaneli

      So, when I try find my EJB calling of my application, case this exception:

      javax.naming.NameNotFoundException: tempConv.TempConvEJB not bound


      And my code is this:
      Object objRef = ic.lookup("tempConv.TempConvEJB");


      I am using JBOSS 4.2 and Eclipse Ganymede.

      The EJB project is into a EE project.

      PS.: Sorry for english, I am learning english.



        • 1. Re: NameNotFoundException
          itsme

          The default scheme for JNDI names in JBoss is

          <ear>/<bean-class-simple-name>/remote
          for remote interfaces. For local interface change to
          <ear>/<bean-class-simple-name>/local

          So your code should look like this
          Object obj = ic.lookup(Bean.class.getSimpleName()+"/remote");
          

          Hope this helps.
          Sandor