I'm having a problem with the vraptor task. I have a Vraptor 4 project created that is sending mail normally, but when I try to create a task it does not send email. See the task class
Controller
public class EntrevistaTask {
private final EmailJava email;
@Inject
public EntrevistaTask(EmailJava email){
this.email = email;
}
@Deprecated
public EntrevistaTask(){
this(null);
}
Scheduled(cron="0/30 * * * * ?")
public void avisoEntrevista() throws EmailException{
email.enviarEmail("[email protected]", "Nova vaga", "Vaga cadastrada com sucesso", "[email protected]");
}
}
Thanks to all who can help.