0 Replies Latest reply on Jul 6, 2007 8:48 PM by Katherine Youngblood

    Jboss iiop problem

    Katherine Youngblood Newbie

      I have a jboss server wih an EJB deployed (the jboss.xml is configured for iiop and the server configuration I am using is all).

      When I try (through JDeveloper using OC4J application server) to lookup the bean through JNDI I get a NamingNotFoundException

      Here's the strange thing. When I remove the iiop reference from the jboss.xml and then try connecting via jnp - I get connected and it can find the EJB with no problem.

      Here's my code that I'm running in JDeveloper. Just wondering why my bean can be found via jnp but not iiop (our preferred way)

      Hashtable environment = new Hashtable();
      environment.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      environment.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
      environment.put(Context.PROVIDER_URL, "jnp://"); // remote machine IP

      // "com.sun.jndi.cosnaming.CNCtxFactory");
      //environment.put("java.naming.provider.url", "corbaloc::");
      UserIndexHome remote = UserIndexUtil.getHome(environment);