Exports a remote object,
impl, to the JRMP runtime and returns a proxy (stub) for the remote object. This method cannot be called more than once to export a remote object or an
IllegalStateException will be thrown.
If this exporter was created with a constructor that accepted a java.rmi.activation.ActivationID, then calling this method is equivalent to invoking java.rmi.activation.Activatable.exportObject with the appropriate impl, ActivationID, port, RMIClientSocketFactory, and RMIServerSocketFactory values. Otherwise, calling this method is equivalent to invoking java.rmi.server.UnicastRemoteObject.exportObject with the appropriate impl, port, RMIClientSocketFactory, and RMIServerSocketFactory values.
@throws NullPointerException {@inheritDoc}
@throws IllegalStateException {@inheritDoc}