Is it ok to use ThreadPoolTaskExecutor and TimerTask in web app, or does it defy the mandate that one must not create their own threads in a web app?
Many thanks in advance,
Chris
Is it ok to use ThreadPoolTaskExecutor and TimerTask in web app, or does it defy the mandate that one must not create their own threads in a web app?
Many thanks in advance,
Chris
I'm using ThreadPoolTaskExecutor from within a ContextListener. As the web application starts it begins several maintenance threads. I don't know if it's "wrong" or not but it seems to work fine and Tomcat does not complain.
Thanks for the reply.
It would be good if there was a statement in the spring docs about threading from a j2ee app...