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

how to schedule a java class?  RSS feed

 
sudhir verma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
i have a java class that sends e mail messages...!
its synchronised with some particular event on who's completion. it sends the mail!
now i want this class to run automatically 24 hrs...how can i do that?
 
Leandro Oliveira
Ranch Hand
Posts: 298
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at java.util.Timer and java.util.TimerTaks. With a Timer you can schedule a task.

I don't know much about this classes, but hope somebody in the forum knows...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!