Robert Young What exactly does it do - the GlassFish-specific max-sessions setting? It seems javax.servlet.http.HttpServletRequest.getSession(true) returns null which is not spec-compliant and would always break Weld session context.