[jboss-user] [EJB3] - Re: EJB 3.1 Timer problems in scheduling recurring task

jaikiran pai do-not-reply at jboss.com
Wed Jan 5 09:57:33 EST 2011


jaikiran pai [http://community.jboss.org/people/jaikiran] created the discussion

"Re: EJB 3.1 Timer problems in scheduling recurring task"

To view the discussion, visit: http://community.jboss.org/message/579031#579031

--------------------------------------------------------------
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
[http://community.jboss.org/message/579031#579031]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110105/60d43174/attachment.html 


More information about the jboss-user mailing list