Cron Job in play framework 2.0

java, playframework, playframework-2.0

Solution

In Play 2.0 job scheduling is done with Akka:

http://www.playframework.org/documentation/2.0.1/JavaAkka see section Scheduling asynchronous tasks

You can also use Global object to perform your actions while the application start/stop

http://www.playframework.org/documentation/2.0.1/JavaGlobal

Problem

How to schedule tasks by cron expressions in Play Framework 2.0? Equivalent to Play 1's `@On("<enter cron expression here>")` annotation

Original source

Related problems