This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes RMIRegistry Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMIRegistry Problem" Watch "RMIRegistry Problem" New topic
Author

RMIRegistry Problem

saritha Burra
Greenhorn

Joined: Aug 20, 2001
Posts: 4
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

Joined: May 15, 2001
Posts: 20
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMIRegistry Problem
 
Similar Threads
IS this Interface design OK
Can we start RMI registrt remotely
Singleton Pattern
Please Help! Clarification on Local vs Remote Approach.
rmiregistry problem..