Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMIRegistry Problem

 
saritha Burra
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Can Anyone tell me
My RMI Registry is running on one machine whose IPaddress is
machine1 and port no. 5000
and RMI Server is on the other machine whose IPAddress is
machine2 and port no. 5000
Now Iam binding the object in RMIServer using
Naming.rebind("rmi://machine1:5000/Bindingobjectname",obj);
Now when after starting RMIRegistry which is in the other machine
When i start RMIServer which is one my machine
Iam getting a Connection Exception
i.e cannot connect to machine1
Thanx
Saritha
 
Fredrik Safstrom
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saritha,
Just out of curiosity...
Why would you like to run the RMI registry on a different machine than your RMI server???
Why don't you just create one in your RMI Server code ???

/Bamse
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic