Package org.eclipse.ecf.server.generic

Examples of org.eclipse.ecf.server.generic.GenericServerContainer


  public void start(int port) throws Exception {
    // Start server
    server = new SimpleGenericServer(HOST,port);
    server.start(PATH, KEEPALIVE);
   
    GenericServerContainer serverContainer = server.getServerContainer(0);
    IRemoteServiceContainerAdapter adapter = (IRemoteServiceContainerAdapter) serverContainer.getAdapter(IRemoteServiceContainerAdapter.class);
    Assert.isNotNull(adapter);
    registration = adapter.registerRemoteService(new String[] { IConcatService.class.getName() }, new ConcatService(), null);
    Assert.isNotNull(registration);
    System.out.println("generic server started with id="+serverContainer.getID());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.server.generic.GenericServerContainer

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.