This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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: 42972
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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!