2 Replies Latest reply on Dec 25, 2005 10:24 PM by Hemil Shah

    lookup problem on client side

    Hemil Shah Newbie

      Hi All,

      I am new to JBOSS.

      I am implementing an application which has client and server running on different JVM and the communication is RMI.

      Now i have binded an object on server but on client when i am doing lookup , the client is getting hanged. Strange thing is inspite of running on verbose mode, There are no exceptions . The gui just gets hanged. I am unable to proceed with it. The client is able to locate the remote stub but the object for which i am doing lookup is not obtained. I have a doubt with jndi properties what i have set. The following is the detail for it :-

      Hashtable env1 = new Hashtable();
      env1.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      env1.put(javax.naming.Context.URL_PKG_PREFIXES,"org.jnp.interfaces" );
      env1.put(javax.naming.Context.PROVIDER_URL, "jnp://");

      Please let me know if anything is wrong. The above properties are set on both the client and server side. If any other alternative is there, then also let me know.