org.objectweb.jeremie.binding.api
Interface RMIContext
- MOAContext, SOAContext
public interface RMIContext
This defines the essential interface of standard RMI UnicastRemoteObjects.
RemoteStub | export(Remote obj, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) - Exports a remote object on the specified port.
|
boolean | unexport(Remote obj, boolean force) - Unexports the specified remote object.
|
export
public RemoteStub export(Remote obj,
int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
throws RemoteException
Exports a remote object on the specified port. Incoming calls are accepted
on the port via a server socket supplied by the specified server socket
factory. Clients will make calls via sockets supplied by the specified
client socket factory.
obj
- the remote object to be exported;port
- the port on which to export the object;csf
- the client socket factory supplying sockets for client-side
connections to the remote object;ssf
- the server socket factory supplying a server side socket.
- a stub for the exported remote object.
unexport
public boolean unexport(Remote obj,
boolean force)
throws NoSuchObjectException
Unexports the specified remote object. If the boolean parameter is true,
the object is unexported even if there are pending calls or calls in
progress. If the boolean parameter is false, the object should be
unexported only if there are no pending calls or calls in progress; this
is not yet implemented.
obj
- the remote object to be unexported;force
- whether the object should be forcibly unexported or not.
- whether the unexport operation succeeded or not.