April 10th, 2013, 01:08 AM
I want to keep watch on mySQL table in time interval to perform some action on table and i want to use servlet and google app engine.How can i get it?.
April 10th, 2013, 01:21 PM
There are at two common ways:
- Use the ScheduledThreadPoolExecutor to create a task to run. Most likely you'd use the scheduleAtFixedRate method for what you're describing.
- Use the Quartz scheduler.
I like to use Quartz when I need to run something at a particular time - it's a bit easier than calulating it myself. But if you're running something, say, every 5 minutes, then the ScheduledThreadPoolExecutor is plenty sufficient.