Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

TimerTask in Servlets  RSS feed

 
Rajendar_reddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I want to implement Timer task in servlets,
please any body done before pl mail me
Thanks,
Raj
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using TimerTask in a servlet environment is not different from using it any other environment. You create it much like you would create a thread (which is essentially what it is), and then use a Timer object to schedule it.
Since this is the Performance forum, are you trying to time (i.e., measure) something? I'm asking because that's not really what TimerTask is meant for.
[ January 23, 2006: Message edited by: Ulf Dittmer ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!