Package org.menacheri.jetserver.server

Examples of org.menacheri.jetserver.server.ServerManager


    AbstractApplicationContext ctx = new AnnotationConfigApplicationContext(ZombieSpringConfig.class);
    // For the destroy method to work.
    ctx.registerShutdownHook();
   
    // Start the main game server
    ServerManager serverManager = ctx.getBean(ServerManager.class);
    //serverManager.startServers(18090,843,8081);
    try
    {
      serverManager.startServers();
    }
    catch (Exception e)
    {
      LOG.error("Unable to start servers cleanly: {}",e);
    }
View Full Code Here


   
    // For the destroy method to work.
    context.registerShutdownHook();
   
    // Start tcp and flash servers
    ServerManager manager = (ServerManager)context.getBean("serverManager");
    try
    {
      manager.startServers(8090,843,8081);
    }
    catch (Exception e)
    {
      LOG.error("Could not start servers cleanly: {}",e);
    }
View Full Code Here

TOP

Related Classes of org.menacheri.jetserver.server.ServerManager

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.