Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); env.put(Context.PROVIDER_URL, "java:<port>"); Context ctx = new InitialContext(env); //look up jndi name Object ref = ctx.lookup("Converter"); //look up jndi name and cast to Home interface converterHome = (ConverterHome) PortableRemoteObject.narrow(ref, ConverterHome.class); converterRemote=converterHome.create();
normally do you use the admin port 9090 or the sample application port 8090 ?