• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI -- host address

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 xx.xxx.xx.99 to xx.xxx.xx.91. Of course, xx.xxx.xx.91 can be connected. Can anyone give me some clue to what it happened? Possible fixes. Please e-mail me meilinkang@yahoo.com.

Thank you very much.


The following is the code:

String name = "GatewayInterface";
try {

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

Naming.rebind(name, engine);
System.out.println("Gateway bound");
} catch (Exception e) {
System.err.println("Gateway exception: " +
e.getMessage());
e.printStackTrace();
}
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic