Package com.starlight.intrepid.demo.basic

Examples of com.starlight.intrepid.demo.basic.ServerInterface


    System.out.print( "Getting remote registry..." );
    Registry registry = intrepid.getRemoteRegistry( vmid );
    System.out.println( "done: " + registry );

    System.out.print( "Looking up TestServer..." );
    ServerInterface server =
      ( ServerInterface ) registry.lookup( ServerInterface.class.getName() );
    System.out.println( "done: " + server );

    System.out.println();

    System.out.println( "Server message is: " + server.getMessage() );

    System.out.print( "Sending callback to server... \"" );
    server.setClient( ( ClientInterface ) intrepid.createProxy( new TestClient() ) );
//    server.setClient( new TestClient() );
    System.out.println( "\"... done." );


    System.out.println(
      "Now we'll loop forever to test reconnection and persistent names:" );
    while( true ) {
      try {
        server.getMessage();
        System.out.println( "." );
      }
      catch( Exception ex ) {
        System.out.println( "Error: " + ex );
        if ( ex instanceof ClassCastException ) {
View Full Code Here

TOP

Related Classes of com.starlight.intrepid.demo.basic.ServerInterface

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.