JBoss Community

Re: EJB 3.1 Timer problems in scheduling recurring task

created by jaikiran pai in EJB3 - View the full discussion

The syntax you are using is correct. So it should have fired once every 5 minutes. Can you try this - change that timeout method to:

 

@Schedule(minute="*/5")
    public void GestisciAlert(javax.ejb.Timer timer) {
      System.out.println("Gestisti  Alert for timer: " + timer + " - Tick -> "+System.currentTimeMillis());
    }   

 

And post that output.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community