Skip to Main Content

Java APIs


For appeals, questions and feedback, please email

Multiple RMI in a single Machine

User_WIPVHNov 27 2022 — edited Nov 27 2022

Can we have Multiple and different RMI exposed Methods using Naming.Rebind("A name for access to Method",new ImplementedInterfaceClass) in a single Machine and running in the same time?
I tried to have such Methods, Running first main is ok and RMI method is successfully is registered ,but always when I run the second main, I recieve error: Exception in thread "main" java.rmi.server.ExportException: Port already in use: 1099
Screenshot 2022-11-27 225255.pngScreenshot 2022-11-27 225315.pngScreenshot 2022-11-27 225354.pnghow can I get multiple RMI running with those desired conditions?

Post Details
Added on Nov 27 2022
1 comment