1 24 package org.ofbiz.webapp.control; 25 26 import javax.servlet.http.HttpSessionActivationListener ; 27 import javax.servlet.http.HttpSessionEvent ; 28 29 import org.ofbiz.base.util.Debug; 30 31 38 public class ControlActivationEventListener implements HttpSessionActivationListener { 39 public static final String module = ControlActivationEventListener.class.getName(); 41 42 public ControlActivationEventListener() {} 43 44 public void sessionWillPassivate(HttpSessionEvent event) { 45 ControlEventListener.countPassivateSession(); 46 Debug.logInfo("Passivating session: " + event.getSession().getId(), module); 47 } 48 49 public void sessionDidActivate(HttpSessionEvent event) { 50 ControlEventListener.countActivateSession(); 51 Debug.logInfo("Activating session: " + event.getSession().getId(), module); 52 } 53 } 54 | Popular Tags |