use of org.apache.deltaspike.cdise.servlet.CdiServletRequestListener in project deltaspike by apache.
the class JettyTest method createServer.
@Override
protected int createServer() throws Exception {
int port = super.getPort();
server = new Server(port);
ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
context.setContextPath("/");
server.setHandler(context);
context.addEventListener(new CdiServletRequestListener());
context.addServlet(new ServletHolder(new RequestServlet()), "/*");
server.start();
return port;
}
Aggregations