Re: newFixedThreadPool in struts2

2018-02-12 Thread Emi
[Try2] . Each user login session create one fixedPool . When user logout, fixedPool.shutdown() What about if users do not call logout action. Where and how the fixedPool to be shutdown? Is there a way to auto shutdown after period of time? You can write your own listener by implementing

Re: newFixedThreadPool in struts2

2018-02-12 Thread Emi
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)