How to schedule tasks by cron expressions in Play Framework 2.0?
Equivalent to Play 1's @On("<enter cron expression here>")
annotation
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With