import java.util.Map;
public class TestCS {
public static void main(String[] args) throws IOException {
final RMIServer serv = new RMIServer(new InetSocketAddress(2888));
serv.registerInterface(new AwesomeServiceImpl(), AwesomeService.class);
new Thread(new Runnable() {
public void run() {
try {
System.out.println("Listening.");
while (true) {
serv.update(-1);
}
} catch (IOException e) {
e.printStackTrace();
}
}