Re: newFixedThreadPool in struts2

2018-02-09 Thread Martin Gainty
in struts this is accomplished implementing org.apache.struts2.interceptor.createSessionInterceptor configured in interceptor-ref name in struts-config.xml action name="someAction" class="com.examples.SomeAction" * interceptor-ref name="createSession"/ afterwards you can access the

Re: Lang

2018-02-09 Thread Martin Gainty
Buenas Noches your implementation of AbstractBeanProvider needs to supply struts-messages_es.properties in WEB-INF/classes/org/apache/struts2 folder if you have no impl of AbstractBeanProvider use org.apache.struts2.config.DefaultBeanSelectionProvider public void register(ContainerBuilder

Re: newFixedThreadPool in struts2

2018-02-09 Thread Dave Weis
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) {

Re: newFixedThreadPool in struts2

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

Re: newFixedThreadPool in struts2

2018-02-09 Thread Emi
Firstly you should decide what do you like about life-time of that thread pool without being worry about calling shutdown. All your examples have solutions to call shutdown which I described below... Please read below [Try1] . By springframe work setup ThreadPool . In action class, use

Lang

2018-02-09 Thread Deborah White
I have this: It doesn't seem to like lang=es Help? CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally privileged information. It is solely for the use of the intended recipient(s). Unauthorized interception, review, use or disclosure is

Re: newFixedThreadPool in struts2

2018-02-09 Thread Yasser Zamani
On 2/8/2018 8:51 PM, Emi wrote: >> Firstly you should decide what do you like about life-time of that >> thread pool without being worry about calling shutdown. All your >> examples have solutions to call shutdown which I described below... >> Please read below >>> [Try1] . By springframe