title: Timer task does not run
body: <p>I am using <code>Timertask</code> in my web application to launch a background thread once every 24 hrs every day at midnight. So I have a ServletContextListener and in contextInitialized, I create a Timertask object timertask(say) and a Timer object say t.</p>
  
  <p>I call </p>
  
  <pre><code>t.schedule(timertask, firstTime.getTime(), rescheduleMiliSec); 
  </code></pre>
  
  <p>where <code>firstTime.getTime() = midnight</code> and <code>rescheduleMiliSec = 24 hr</code>.
  The thread launches fine and does what it is supposed to do in DIT.Every 24 hrs it launches the background task.</p>
  
  <p>When it moves to PROD, the thread runs only once when context is initialised but not after that.</p>
  
  <p>Is there any specific setting that might be the cause for this?</p>