0 Replies Latest reply on Feb 22, 2005 8:54 AM by sysuser1

    JBoss and rmi

    sysuser1

      Hi,

      I have searched the forums and the Internet for the question how to get JBoss 4.0.0 work with rmi instead of jnp, but couldn't find an answer.
      Does anyone know what configurations have to be changed in order to use rmi?
      What is the client call?
      for jnp it is e.g:
      Hashtable env = new Hashtable();
      env.put(Context.INITIAL_CONTEXT_FACTORY,
      "org.jnp.interfaces.NamingContextFactory");
      env.put(Context.PROVIDER_URL, "jnp://localhost:1099");
      env.put("java.naming.factory.url.pkgs",
      "org.jboss.naming:org.jnp.interfaces");

      try {

      Context ctx = new InitialContext(env);
      Object obj = ctx.lookup("HelloWorld");
      }...
      how does this look like for rmi?


      By the way, I'd like to know if I need the "all" configuration for rmi (I thought and think the "default" conf should be enough, I do not need clustering, etc.).

      Thanks.