2 Replies Latest reply on Aug 14, 2002 9:34 AM by Paul Morgan

    Use LocalHome in jboss,I meet a question

    wellday Newbie

      I write a simple hello bean ,use LocalHome instead of Home,but when I try to lookup the bean ,I get a error as "hello not bound".I wonder if there is something diffefent?
      the files I used as follows:
      <display-name>Hello EJB</display-name>



      InitialContext jndiContext = new InitialContext();
      System.out.println("Got context");

      // Get a reference to the Interest Bean
      Object ref = jndiContext.lookup("Hello");
      System.out.println("Got reference");

      thanks a lot!!!