-
Bug
-
Resolution: Done
-
Major
-
JDG 7.1.0 ER1
-
None
When using HotRodManager as a session manager, web listeners stop work. Here is simple HttpSessionListener which work properly when default session manager is used, once switched to HotRodManager, it stops working:
@WebListener public class JwsSessionListener implements HttpSessionListener { private int sessionsCreated = 0; private int sessionesDestroyed = 0; @Override public void sessionCreated(HttpSessionEvent se) { sessionsCreated++; se.getSession().getServletContext().setAttribute("created", sessionsCreated); } @Override public void sessionDestroyed(HttpSessionEvent se) { sessionesDestroyed++; se.getSession().getServletContext().setAttribute("destroyed", sessionesDestroyed); } }