Search in sources :

Example 1 with WorkManagerThreadPool

use of org.apache.cxf.jca.cxf.WorkManagerThreadPool in project cxf by apache.

the class EJBEndpoint method setWorkManagerThreadPoolToJetty.

protected void setWorkManagerThreadPoolToJetty(Bus bus, String baseAddress) {
    JettyHTTPServerEngineFactory engineFactory = bus.getExtension(JettyHTTPServerEngineFactory.class);
    int port = getAddressPort(baseAddress);
    if (engineFactory.retrieveJettyHTTPServerEngine(port) != null) {
        return;
    }
    JettyHTTPServerEngine engine = new JettyHTTPServerEngine();
    engine.setThreadPool(new WorkManagerThreadPool(getWorkManager()));
    engine.setPort(port);
    List<JettyHTTPServerEngine> engineList = new ArrayList<>();
    engineList.add(engine);
    engineFactory.setEnginesList(engineList);
}
Also used : WorkManagerThreadPool(org.apache.cxf.jca.cxf.WorkManagerThreadPool) JettyHTTPServerEngine(org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine) ArrayList(java.util.ArrayList) JettyHTTPServerEngineFactory(org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory)

Aggregations

ArrayList (java.util.ArrayList)1 WorkManagerThreadPool (org.apache.cxf.jca.cxf.WorkManagerThreadPool)1 JettyHTTPServerEngine (org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine)1 JettyHTTPServerEngineFactory (org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory)1