Package org.apache.etch.bindings.java.support

Examples of org.apache.etch.bindings.java.support.ServerFactory


   */
  public static void main( String[] args ) throws Exception
  {
    String uri = "tcp://0.0.0.0:4006";

    ServerFactory listener = MyCuaeHelper.newListener( uri, null, new MainCuaeListener() );

    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
  }
View Full Code Here


   */
  public static void main( String[] args ) throws Exception
  {
    String uri = args.length > 0 ? args[0] : "tcp://0.0.0.0:4001";
   
    ServerFactory listener = InheritanceHelper.newListener( uri, null,
      new MainInheritanceListener() );

    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
   
    InetSocketAddress localAddr = (InetSocketAddress) listener.transportQuery( TcpListener.LOCAL_ADDRESS );
    URL u = new URL( "tcp:" );
    u.setHost( localAddr.getHostName() );
    u.setPort( localAddr.getPort() );
    localUri = u.toString();
  }
View Full Code Here

      return;
    }
   
    MainChatListener implFactory = new MainChatListener();
   
    ServerFactory listener = ChatHelper.newListener( uri, null,
      implFactory );

    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
  }
View Full Code Here

      System.exit( 1 );
    }
   
    String uri = args.length > 0 ? args[0] : "tcp://localhost:4001";
   
    ServerFactory listener = IOTHelper.newListener( uri, null,
      new MainIOTListener() );

    // Start the Listener
    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
   
    System.out.println( "listener started: "+listener );
  }
View Full Code Here

  public static void main( String[] args ) throws Exception
  {
    // TODO Change to correct URI
    String uri = "tcp://127.0.0.1:4001";
   
    ServerFactory listener = HelloWorldHelper.newListener( uri, null,
      new MainHelloWorldListener() );

    // Start the Listener
    listener.transportControl( Transport.START_AND_WAIT_UP, 4000 );
  }
View Full Code Here

TOP

Related Classes of org.apache.etch.bindings.java.support.ServerFactory

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.