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

    JBoss and rmi

    sys user Master


      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.PROVIDER_URL, "jnp://localhost:1099");

      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.).