0 Replies Latest reply on Apr 11, 2002 10:33 AM by kibaltsis

    JNDI lookup

    kibaltsis

      How does JBoss handle the naming context entries in JNDI?
      Some documentation tells me to use lookup("java:comp/env/ejb/beanName") for looking up my beans, yet in JBoss it seems this only results in an error (comp not bound).
      If i try lookup("beanName") it returns the bean im looking for.
      A thread here with the same says that you can only access the java: bindings from inside the same vm. If this is so, how should I then bind my beans and look them up to get the best portability across different j2ee implementations/ejb servers?