Hi,

I put following code to start a job, it runs every min,  I'd like it to run
once it is loaded, then every min, possible? thanks.

@Startup
   public static void scheduleJobs(
           PeriodicExecutor executor,
           final Jobs jobs) {

       executor.addJob(
               new IntervalSchedule(1000L*60*60),
               "Job",
               new Runnable() {
                   public void run() {
                       jobs.hourlyrun();
                   }
               });
   }



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/PeriodicExecutor-tp5714867.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to