0 Replies Latest reply on Jan 3, 2003 7:35 PM by Benson

    Difference between java:comp/env/BeanName and BeanName

    Benson Newbie

      Dear sir,

      I found that some of the example of calling the home object looks like as follows :

      InitialConext initial = new InitialContext();
      Object homeObject = initial.lookup("BeanName");

      some example of call the home object looks like as follows :

      InitialConext initial = new InitialContext();
      Object homeObject = initial.lookup("java:comp/env/BeanName");

      Can anyone tell me the difference between these two examples?


      Thank you very much.
      Benson