It's still accessible: public void sessionCreated(HttpSessionEvent hse) { final HttpSession session = hse.getSession();
logger.debug("session created"); session.setAttribute(KEY, new Clickstream()); } public void sessionDestroyed(HttpSessionEvent hse) { final HttpSession session = hse.getSession(); logger.debug("session destroyed"); } On Fri, Feb 9, 2018 at 3:02 PM, Emi <em...@encs.concordia.ca> wrote: > Hello Yasser, > >> You can write your own listener by implementing HttpSessionListener and >> call shutdown in it's `sessionDestroyed` method. Please see [1]. [1] >> http://www.myjavarecipes.com/tag/session-timeout-handling-in-java/ >> > In HttpSessionListener, it seems that there are no session attributes > anymore. So, there is no way for me to do the following in the listener > class: > > fixPool = session.getAttribute('fixpool_name'); > fixPool.shutdown(); > > So, the only possible way is through springframework config, right? > > Thanks a lot. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >