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);
}
Aggregations