Is it safe to use java.util.Timer inside servlet within TomCat Container ?

Discussion in 'Apache' started by worldpython, Dec 25, 2009.

  1. #1
    Hi all,

    This for servlet would be deployed inside tomcat container
    for many reasons, it is not good practice to use threads inside servlet. java.util.Timer seems like wrapper to threads. so also it is not safe to use it ? if yes, what is the safest way to schedule task in servlet ?


    thanks,,,
     
    worldpython, Dec 25, 2009 IP