playframework 2.0 - scheduled job on play using akka -
I'm trying to execute a method using one minute though I have not found any errors, but the method Has not been executed !! I tried to expand play.api.globalsettings but I got an error for him. That's why I implemented it.
Here's my code:
Public Class Global tool play.api.GlobalSettings {ActorRef tickActor; Override public-wide {{single system ()) on the Horroride Public Wide {Start (play.app.app app) before @stars (app app). Scheduler () Schedule (0, time unit. Milliseconds), duration .create (1, TimeUnit.MINUTES), new runnab () {public zero run (safe secured object = new secure); protected object.Delete ExcluteToken Enduser ();}}, acq. System () .disppatcher ()); } Any thoughts?
In a Java application, you should expand from Playback. Global settings and not play. API . Global Settings [/ p> In Java Framework 2 you should use the playware play package, and the play.api package for Scala applications can have many classes but they are not the same.
Comments
Post a Comment