comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:3dc0c5604566
1 package org.dancres.blitz.remote;
2
3 /**
4 Simple skeleton to bring up a Blitz server and see if it has a proxy.
5 Blitz, of course, will advertise itself to JINI LUS instances but that's
6 okay and another means of checking things work.
7 */
8 public class Test {
9 public static void main(String anArgs[]) {
10 try {
11 BlitzServiceImpl myServer = new BlitzServiceImpl(anArgs, null);
12
13 System.out.println("Stub: " + myServer.getProxy());
14 System.out.println("Proxy: " + myServer.getServiceProxy());
15
16 Object myLock = new Object();
17
18 synchronized(myLock) {
19 myLock.wait();
20 }
21
22 } catch (Exception anE) {
23 System.out.println("Ooops");
24 anE.printStackTrace(System.out);
25 }
26 }
27 }