![]() |
RMI Release Notes |
JDK 1.2 Contents |
Remote Method Invocation (RMI) has several new enhancements. Remote Object Activation introduces support for persistent references to remote objects and automatic object activation via these references. Custom Socket Types allow a remote object to specify the custom socket type that RMI will use for remote calls to that object. RMI over a secure transport (such as SSL) can be supported using custom socket types. Minor API Enhancements allow the following: unexporting a remote object, obtaining the stub for an object implementation, obtaining a local object implementation from a stub, and exporting an object on a specific port.Changes to Remote Interface Definition
java.rmi.Remote
as long as all of the methods throw a legal remote exception type (see below).
java.rmi.RemoteException
, such as java.io.IOException
or java.lang.Exception
, instead of RemoteException
in the throws clause of the method.
toImpl
has been removed since the method cannot be made secure without allowing too many restrictions on its use.
getRef
has been added. It returns the remote reference type, a java.rmi.server.RemoteRef
for the remote object.
unexportObject
takes an additional parameter force
and returns a boolean to indicate whether the operation was successful.
exportObject
method now return Remote
instead of RemoteStub
since the former allows more flexibility in future implementations of RMI.
restart
, to indicate the restart mode for the object. The restart mode, if set, will cause the object to be restarted when the RMI activation daemon starts; otherwise, the object is simply activated on-demand.
getRestartMode
returns the restart mode for the object.
restart
parameter.
register
method now returns Remote
instead of RemoteStub
since the former allows more flexibility in future implementations of RMI.
inactive
method now returns a boolean that indicates whether the object was deactivated successfully. An object can only be deactivated if it has no pending or executing calls.
exportObject
method was added that is similar to the first but takes another parameter restart
that indicates the restart mode of the object.
shutdown
has been added to provide a means for graceful shutdown of the activation system. Also, a new option, -stop
has been added to rmid
that invokes the shutdown
method of the ActivationSystem
running on the default or specified port.
inactiveObject
now returns a boolean that indicates whether the operation was successful.
Copyright © 1995-98 Sun Microsystems, Inc. All Rights Reserved. Please send comments to: rmi-comments@java.sun.com |
![]() JavaSoft |