0 Replies Latest reply on May 18, 2006 2:03 AM by wang haiwen

    @EJB  inject session Bean?

    wang haiwen Newbie

      @EJB
      private UserManager userManager;

      when the runtime it inject code like this?

      try
      {
      javax.naming.InitialContext context = new javax.naming.InitialContext ();
      return (UserManager) context.lookup("UserManagerBean/local");
      }catch(Exception e)
      {
      e.printStackTrace();
      return null;
      }

      Right?
      can you tell me, thank you a lot!