Search in sources :

Example 1 with JettyServerComponent

use of com.adaptris.core.management.jetty.JettyServerComponent in project interlok by adaptris.

the class EmbeddedJettyHelper method startServer.

public void startServer() throws Exception {
    jetty = new JettyServerComponent();
    jetty.init(jettyConfig);
    jetty.start();
    Thread.sleep(250);
    final JettyServerManager mgr = JettyServerManager.getInstance();
    while (!mgr.isStarted()) {
        Thread.sleep(250);
    }
}
Also used : JettyServerComponent(com.adaptris.core.management.jetty.JettyServerComponent) JettyServerManager(com.adaptris.core.management.webserver.JettyServerManager)

Aggregations

JettyServerComponent (com.adaptris.core.management.jetty.JettyServerComponent)1 JettyServerManager (com.adaptris.core.management.webserver.JettyServerManager)1