代码之家  ›  专栏  ›  技术社区  ›  wishi

独立的注册中心和服务器应用程序

  •  0
  • wishi  · 技术社区  · 16 年前

    我正在开发一个在服务器上启动RMI注册表的基本应用程序:

    try {
                // create the registry and bind the name and object.
                registry = LocateRegistry.createRegistry(thisPort);
                registry.rebind("rmiServer", this);
            }
            catch (RemoteException e) {
                throw e;
            }
    

    1 回复  |  直到 16 年前
        1
  •  3
  •   Kevin    16 年前

    我想在另一台计算机上运行注册表 机器。可以分开吗 这

    LocateRegistry.getRegistry(host, port)