title: How to schedule task daily + onStart() in Play 2.0.4?
body: <p>I need to execute a piece of code 1 time everyday in playframework2.0.4  when I try to do with the class extends GlobalSettings it works. But it works for every instance requesting. I want it works when server starts and does its duty everyday 1 time.</p>
  
  <pre><code>package controllers;
  import java.util.concurrent.TimeUnit;
  import akka.util.Duration;
  import play.Application;
  import play.GlobalSettings;
  import play.libs.Akka;
  
  public class ParserJobApp extends GlobalSettings{
  @Override
  public void onStart(Application app) {
      Akka.system().scheduler().schedule(Duration.create(0, TimeUnit.MILLISECONDS),Duration.create(6, TimeUnit.SECONDS), new Runnable() { 
          @Override
          public void run() {
              System.out.println("AAA ---    "+System.currentTimeMillis());
          }
      });
  }
  }
  </code></pre>
  
  <p>
  And this is my controller where start the class above</p>
  
  <pre><code>public class Application extends Controller {
  
  public static Result index() { 
    ParserJobApp pr=new ParserJobApp();
    pr.onStart(null);
    System.out.println("sfsdfsdf");
  return ok(index.render("Your new "));
  
  }
  }
  </code></pre>