A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
What's the difference between Registry.rebind and Naming.rebind?
Joined: Mar 12, 2010
Mar 12, 2010 01:47:36
I'm new to RMI, and when i was writing my first "Hello, RMI" program i found out two ways of placing my remote objects to the registry:
Remote robject = new RemoteObject(); Registry registry = LocateRegistry.createRegistry(1099); registry.rebind("HelloRMI", robject);
Remote robject = new RemoteObject(); Naming.rebind("HelloRMI", robject);
Both ways work fine with my application, but what's the difference between them? Should i use any particular one?
Joined: Mar 22, 2010
Mar 22, 2010 03:21:37
Is anybody there to answer this?
I also want to know
Joined: Apr 01, 2007
Apr 02, 2010 10:18:13
Question raised in Certification forum with valid answer
I agree. Here's the link:
subject: What's the difference between Registry.rebind and Naming.rebind?
Naming.rebind() failing to connect to a running registry.
RMI Naming and registry
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015