Skip to Main Content

Multiple RMI in a single Machine

User_WIPVHNov 27 2022 — edited Nov 27 2022

Hi
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?

Comments
Post Details
Added on Nov 27 2022
1 comment
2 views