use of uk.ac.ebi.spot.goci.pussycat.manager.PussycatManager in project goci by EBISPOT.
the class PussycatAwareHttpSessionListener method sessionDestroyed.
@Override
public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
HttpSession session = httpSessionEvent.getSession();
ServletContext servletContext = session.getServletContext();
WebApplicationContext appContext = (WebApplicationContext) servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
PussycatManager pussycatManager = appContext.getBean("pussycatManager", PussycatManager.class);
getLog().debug("HttpSession '" + session.getId() + "' destroyed - attempting to unbind resources");
boolean unbound = pussycatManager.unbindResources(session);
getLog().debug("Unbinding resources for HttpSession '" + session.getId() + "' " + (unbound ? "ok" : "failed"));
}
Aggregations