Package com.google.opengse.core

Examples of com.google.opengse.core.ServletEngineFactoryImpl


// uncomment the following line if you want to be able to swap in different engines easily
//    ServletEngineFactory engineFactory = JNDIMain.lookup(ServletEngineFactory.class);

    // we'll hard-code the factory implementation now, for the sake of Simon Stewart
    // who's brother was killed by JNDIMain and he's never forgiven that class
    ServletEngineFactory engineFactory = new ServletEngineFactoryImpl();
    int port = 8080;
    int maxThreads = 5;
    ServletEngineConfiguration config = ServletEngineConfigurationImpl.create(port, maxThreads);
    ServletEngine engine = engineFactory.createServletEngine(helloWorld, config);
    engine.run();
  }
View Full Code Here

TOP

Related Classes of com.google.opengse.core.ServletEngineFactoryImpl

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.