Server server = runner.getServer();
server.setSessionIdManager(idMgr);
WebAppContext wac = (WebAppContext) server.getHandler();
JDBCSessionManager jdbcMgr = new JDBCSessionManager();
jdbcMgr.setIdManager(server.getSessionIdManager());
// force the session to be read from the database with no delay
// This is an incorrectly documented feature.
jdbcMgr.setSaveInterval(0);
wac.setSessionHandler(new SessionHandler(jdbcMgr));
wac.getServletContext().setInitParameter("cluster.name", name);
runner.start();
return runner;