Results 1 to 3 of 3

Thread: Ok to use ThreadPoolTaskExecutor and TimerTask in web app?

  1. #1
    Join Date
    Aug 2007
    Posts
    22

    Default 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. #2
    Join Date
    Jan 2009
    Posts
    29

    Default

    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.

  3. #3
    Join Date
    Aug 2007
    Posts
    22

    Default

    Thanks for the reply.

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •