import java.rmi.*;
import java.rmi.server.*;

public class BallServer extends UnicastRemoteObject
  implements RemoteBall 
   {
    public BallServer() throws RemoteException {
//      super();
    }
    public void hit() {
      System.out.println("Ball hit");
    }
    public static void main( String args[]) {
      try {
        BallServer ball = new BallServer();
        Naming.rebind("Ball_server", ball);
      } catch (Exception e) { e.printStackTrace(); }
    }
  }
  	