File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes RMI -- host address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI -- host address" Watch "RMI -- host address" New topic

RMI -- host address

Mei-Lin Kang

Joined: Oct 11, 2004
Posts: 1
I have a rmi interface working for a long while. Our system admin put some package on AIX machine where I have my rmi stuff. Something has change to rmiregistry or something. I was able to to rmiregistry fine but I have problem to start with my interface. I found out the address bind to has changed. It change from to Of course, can be connected. Can anyone give me some clue to what it happened? Possible fixes. Please e-mail me

Thank you very much.

The following is the code:

String name = "GatewayInterface";
try {

try {
RMISocketFactory.setSocketFactory(new FixedPortRMISocketFactory());
} catch (IOException e) {
Gateway engine = new Gateway();

Naming.rebind(name, engine);
System.out.println("Gateway bound");
} catch (Exception e) {
System.err.println("Gateway exception: " +
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

What error message are you getting when starting your server?

Since you are not specifiying the host name in the binding step, I don't see where a change in the ip address would break the code you posted. (Maybe the client side code though, depending on how you do the lookup...)

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: RMI -- host address
It's not a secret anymore!