diff test/org/dancres/blitz/remote/Test.java @ 0:3dc0c5604566

Initial checkin of blitz 2.0 fcs - no installer yet.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 21 Mar 2009 11:00:06 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/org/dancres/blitz/remote/Test.java	Sat Mar 21 11:00:06 2009 +0000
@@ -0,0 +1,27 @@
+package org.dancres.blitz.remote;
+
+/**
+   Simple skeleton to bring up a Blitz server and see if it has a proxy.
+   Blitz, of course, will advertise itself to JINI LUS instances but that's
+   okay and another means of checking things work.
+ */
+public class Test {
+    public static void main(String anArgs[]) {
+        try {
+            BlitzServiceImpl myServer = new BlitzServiceImpl(anArgs, null);
+
+            System.out.println("Stub: " + myServer.getProxy());
+            System.out.println("Proxy: " + myServer.getServiceProxy());
+
+            Object myLock = new Object();
+
+            synchronized(myLock) {
+                myLock.wait();
+            }
+
+        } catch (Exception anE) {
+            System.out.println("Ooops");
+            anE.printStackTrace(System.out);
+        }
+    }
+}