Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-673

JWS session externalization: web listeners don't work

XMLWordPrintable

      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);
          }
      
      }
      
      

            pferraro@redhat.com Paul Ferraro
            vjuranek@redhat.com Vojtech Juranek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: