00001 package cast.examples;
00002
00003 import cast.CASTException;
00004 import cast.cdl.ComponentLanguage;
00005 import cast.core.CASTUtils;
00006 import cast.examples.autogen.WordServer;
00007 import cast.examples.autogen.WordServerPrx;
00008
00009 public class ExternalClientTest {
00010
00011 public static void main(String[] args) throws CASTException,
00012 InterruptedException {
00013 WordServerPrx wordServer = CASTUtils.getCASTIceServer(
00014 "implements.server", "localhost", ComponentLanguage.JAVA,
00015 WordServer.class, WordServerPrx.class);
00016
00017 while (true) {
00018 System.out.println(wordServer.getNewWord());
00019 Thread.sleep(1000);
00020 }
00021
00022 }
00023
00024 }