aboutsummaryrefslogtreecommitdiffstats
path: root/rmi/RMIClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'rmi/RMIClient.java')
-rwxr-xr-xrmi/RMIClient.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/rmi/RMIClient.java b/rmi/RMIClient.java
new file mode 100755
index 0000000..4de0e48
--- /dev/null
+++ b/rmi/RMIClient.java
@@ -0,0 +1,34 @@
+/*
+ * Created on 01-Mar-2016
+ */
+package rmi;
+
+import java.rmi.Naming;
+import java.rmi.NotBoundException;
+import java.rmi.RemoteException;
+
+import common.MessageInfo;
+
+public class RMIClient {
+
+ public static void main(String[] args) {
+
+ RMIServerI iRMIServer = null;
+
+ // Check arguments for Server host and number of messages
+ if (args.length < 2){
+ System.out.println("Needs 2 arguments: ServerHostName/IPAddress, TotalMessageCount");
+ System.exit(-1);
+ }
+
+ String urlServer = new String("rmi://" + args[0] + "/RMIServer");
+ int numMessages = Integer.parseInt(args[1]);
+
+ // TO-DO: Initialise Security Manager
+
+ // TO-DO: Bind to RMIServer
+
+ // TO-DO: Attempt to send messages the specified number of times
+
+ }
+}