IntelliJ Java IDE
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Registry.rebind or Naming.rebind ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Registry.rebind or Naming.rebind ?" Watch "Registry.rebind or Naming.rebind ?" New topic
Author

Registry.rebind or Naming.rebind ?

Farouk Mohamed1
Ranch Hand

Joined: Jul 26, 2001
Posts: 113
Hi
I am struck can you tell me the difference.
I start a registry in the code using LocateRegistry.createRegistry and should i have to use
registry.rebind("rmi://localhost/FlightServices:1099",new RemoteConnection()");
or
Naming.rebind("rmi://localhost/FlightServices:1099",new RemoteConnection()");
What difference does it make? please explain
Farouk
Farouk Mohamed1
Ranch Hand

Joined: Jul 26, 2001
Posts: 113
Pleas guys
Any one help me on this
Farouk
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Your JDK has sources for the Java API - in Naming.java, it saysSo the method in Naming just delegates the real work to the Registry method.
- Peter
Farouk Mohamed1
Ranch Hand

Joined: Jul 26, 2001
Posts: 113
Thanks peter
 
IntelliJ Java IDE
 
subject: Registry.rebind or Naming.rebind ?
 
Threads others viewed
Basic RMI problem
java.net.UnknownHostException
What's the difference between Registry.rebind and Naming.rebind?
RMI binding clarification needed
Java.rmi.RemoteException
IntelliJ Java IDE