import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class Servant extends UnicastRemoteObject implements theInterface {
	protected Servant() throws RemoteException {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
	 */
	
	public String message = "Merci!";
	
	public String fonct(String s) throws RemoteException{
		System.out.println("serviteur reçoit "+s);
		System.out.println("serviteur renvoie "+message);
		return message;
	}
}
