log.debug("session "+sessEvent.getSession().getId()+" created");
}
public void sessionDestroyed(HttpSessionEvent sessEvent) {
if (sessEvent.getSession().getAttribute(StandardServletSessionRouterService.SESSION_SERVICE_KEY) != null ) {
StandardRelocatableServiceDecorator service =
(StandardRelocatableServiceDecorator) sessEvent.getSession().getAttribute(StandardServletSessionRouterService.SESSION_SERVICE_KEY);
try {
service._getRelocatable().overrideEnvironment(new StandardEnvironment(null, new HashMap()));
service._getComponent().destroy();
log.debug("Session "+sessEvent.getSession()+" destroyed with the service "+service);
}
catch(Exception e) {
log.error(ExceptionUtils.getFullStackTrace(e));
}