struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emi <em...@encs.concordia.ca>
Subject Re: newFixedThreadPool in struts2
Date Fri, 09 Feb 2018 21:02:10 GMT
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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message