0
I’m trying to create a simple task scheduler using EJB
, but as a result it is not clicking at the beginning of the application, which would be through the annotation @Startup
. Utilise jdk 1.8 wildFly 11.0
.
Also, on the console of wildFly
no error appears, neither Warning. I don’t know what might be going on. Could anyone help me? Or would they have a hint of what might be? Would have some configuration in wildFly?
My Scheduler class.java
import javax.ejb.Schedule;
import javax.ejb.Singleton;
import javax.ejb.Startup;
@Singleton
@Startup
public class Agendador {
@Schedule(hour = "*", minute = "*", second = "*/10", persistent = false)
void agendado() {
System.out.println("verificando serviço externo periodicamente");
}
}