Announcement Announcement Module
Collapse
No announcement yet.
Ok to use ThreadPoolTaskExecutor and TimerTask in web app? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ok to use ThreadPoolTaskExecutor and TimerTask in web app?

    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

  • #2
    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.

    Comment


    • #3
      Thanks for the reply.

      It would be good if there was a statement in the spring docs about threading from a j2ee app...

      Comment

      Working...
      X