3 Replies Latest reply on Aug 16, 2002 9:31 PM by solidboy

    mail services jndi not bind

    solidboy Newbie

      my servelet code is:

      System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
      System.setProperty("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
      System.setProperty("java.naming.provider.url","localhost:1099");
      InitialContext jndiContext = new InitialContext();
      Object ref = jndiContext.lookup("java:/Mail");


      but
      it say :
      Mail not bind

      I use http://localhost:8082
      I can see java:namespace
      + Mail
      Please tell me why?