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

Popular posts from this blog

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -

jasper reports - How to center align barcode using jasperreports and barcode4j -

django - CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False -