How to close rmiregistry running on particular port?
问题 I am working on Java RMI. I am having little issue with running my rmiregistry on port 2028 as I allready used that one to run my test program. I can run my program using other port but I would like to know, How we can close rmiregistry running on perticular port ? 回答1: If you want to do this in programming, we do something like: // create the registry Registry rmiRegistry = LocateRegistry.createRegistry(port); ... // connect to it JMXConnectorServer connector = JMXConnectorServerFactory