Forums Register Login

Diff. between Naming and Registry.

+Pie Number of slices to send: Send
Hi,

I just started working on RMI i dont know the difference between Naming and Registry.
As we can bind remote object through Naming.rebind static method as well as Registry reg = Registry.getRegistry("hostname");
Awaiting for reply.

Abhijeet.
+Pie Number of slices to send: Send
Hi ,

A Registry is an interface that provides the methods supported by
registry implementation. rmiregistry program provides such
implementation. The Naming class provides (static) methods to bind ,
unbind , list and lookup Remote server objects. Naming class uses
LocateRegistry to find a registry on the specified machine and port.

Bottom line: Use Naming.lookup().
Do you want ants? Because that's how you get ants. And a tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1071 times.
Similar Threads
NX:RMI Easy Question
RMI Questions
Changing RMI port from 1099
server gui ? and safe shutdown
RMI Naming and registry
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:28:08.