-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClient.java
More file actions
24 lines (24 loc) · 732 Bytes
/
Client.java
File metadata and controls
24 lines (24 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//package distsys;
//
//
//import java.rmi.registry.LocateRegistry;
//import java.rmi.registry.Registry;
//
//public class Client {
//
// private Client() {}
//
// public static void main(String[] args) {
//
// String host = (args.length < 1) ? null : args[0];
// try {
// Registry registry = LocateRegistry.getRegistry(host);
// ConnectionInterface stub = (ConnectionInterface) registry.lookup("ConnectionInterface");
// String response = stub.sayHello();
// System.out.println("response: " + response);
// } catch (Exception e) {
// System.err.println("Client exception: " + e.toString());
// e.printStackTrace();
// }
// }
//}