RMI server: rmiregistry or LocateRegistry.createRegistry

前端 未结 4 1540
灰色年华
灰色年华 2021-02-05 15:29

For RMI on server-side, do we need to start rmiregistry program, or just call LocateRegistry.createRegistry? If both are possible, what are the advant

4条回答
  •  名媛妹妹
    2021-02-05 16:21

    If you use Spring to export your RMI services, it automatically starts a registry if one is not already running. See RmiServiceExporter

提交回复
热议问题