Exporting and Binding Remote Objects
- Remote objects need to be exported. It makes the
object listen on anonymous port for method requests from
stub.
- Exporting happens automatically if you extend
RemoteObject or Activatable. Otherwise
you must call UnicastRemoteObject.exportObject or
Activatable.exportObject.
- You must define a constructor that throws
RemoteException (because the base class does).
- The object server must have a
SecurityManager.
- The object must get bound (
rebind()).
- These last two must be done by a when the server starts.
José M. Vidal
.
4 of 22