Search in sources :

Example 1 with JPAWebConfigurer

use of org.activiti.rest.JPAWebConfigurer in project Activiti by Activiti.

the class BaseJPARestTestCase method getServletContextHandler.

private static ServletContextHandler getServletContextHandler(AnnotationConfigWebApplicationContext context) throws IOException {
    ServletContextHandler contextHandler = new ServletContextHandler();
    JPAWebConfigurer configurer = new JPAWebConfigurer();
    configurer.setContext(context);
    contextHandler.addEventListener(configurer);
    // Create the SessionHandler (wrapper) to handle the sessions
    HashSessionManager manager = new HashSessionManager();
    SessionHandler sessions = new SessionHandler(manager);
    contextHandler.setHandler(sessions);
    return contextHandler;
}
Also used : SessionHandler(org.eclipse.jetty.server.session.SessionHandler) JPAWebConfigurer(org.activiti.rest.JPAWebConfigurer) HashSessionManager(org.eclipse.jetty.server.session.HashSessionManager) ServletContextHandler(org.eclipse.jetty.servlet.ServletContextHandler)

Aggregations

JPAWebConfigurer (org.activiti.rest.JPAWebConfigurer)1 HashSessionManager (org.eclipse.jetty.server.session.HashSessionManager)1 SessionHandler (org.eclipse.jetty.server.session.SessionHandler)1 ServletContextHandler (org.eclipse.jetty.servlet.ServletContextHandler)1