A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
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
It is sorta covered in the
JavaRanch Style Guide
subject: What's the difference between Registry.rebind and Naming.rebind?
RMI Naming and registry
Naming.rebind() failing to connect to a running registry.
Registry.rebind or Naming.rebind ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014