1 Reply Latest reply on May 24, 2006 3:42 PM by Scott Stark

    problem with looking up ejb

    allan bronson Newbie

      I have created an mbean by using the @Service and @Management annotations and has been deployed and started to run.

      In my start method, I try and lookup a bean, but am getting an error saying "ejb/local-HelloBean not bound". The HelloBean was deployed correctly. Any insight would be appreciated.

      start throws exception
      {
      InitialContextcontext = new InitialContext();
      Hello hello= (Hello)context.lookup("java:comp/env/ejb/local-HelloBean");
      }

      Thanks

      abronson