// XObjectRemote.java
import java.rmi.*;
import java.rmi.server.*;
/*
 A generic object that can communicate from the remote end
 to the server end in an RMI setup.
 
 Suppose Alice holds an XObjectServer.
 Alice registers an XObjectListener on the XObjectServer.
 Bob obtains the XObjectRemote for Alice's server.
 Bob sends a love note to his XObjectRemote.
 The send makes its way over to Alice's machine,
 where it is sent to her listener.
*/

public interface XObjectRemote extends java.rmi.Remote {
	public void send(Object message) throws RemoteException;
}

