0 Replies Latest reply on Nov 9, 2006 3:18 AM by andria-ntoanina

    Problem acceding EJB in a enterprise application

    andria-ntoanina

      I've tried to access my Enterprise bean in an Enterprise application client.
      Using this code :

      Context c = new InitialContext();
       return (BeanSessionRemote) c.lookup("java:comp/env/ejb/BeanSessionBean");


      but when I run my application I got the next Exception:
      javax.naming.NamingException: Failed to find j2ee.clientName in jndi env
      


      May anybody help me?

      Thanks a lot!

      PS:
      I'm using NetBeans 5.5
      and I write in english very bad