import java.rmi.*;

  public class AnnouncerClient {

	/*  The Airport System Announcer Client   by L Botha
	 *  ===================================
	 *
	 *  Called by the CheckIn applet to send a specific
	 *  message to be announced. Passes the message on
	 *  to the Announcer server.
	 */

    public static void main(String args[]) {
        sendMessage("This is a test");
    }

    public static void sendMessage(String message) {
      try {
        Announcer an =
           (Announcer)Naming.lookup
					 ("rmi://localhost/AnnouncerServer");
        an.sendMessage(message);
      } catch (Exception e) {
          System.out.println(e);
      }
    }
  }